Azar F.
2011-Jul-14 08:46 UTC
error while running "rails server", could not find gem mysql 0.2.6
Hi every one, I use windows7 os, recently I have installed ruby 1.8.7 and rails 3 and mysql 5.5. I have created a new project by using this command: " rails new simple -d mysql" but when I want to run it by " rails server", this error appears: "could not find gem mysql 0.2.6,runtime in any of the gem sources listed in your gem file" I should mention that: 1) I have installed mysql not mysql2 by using "gem install mysql" and I have modified Gemfile and databases.yml by replacing mysql instead of mysql2. 2) when I run "bundle install" and then run "rails server" again, I have the same problem. Can anyone help me? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Luis Lavena
2011-Jul-14 14:10 UTC
Re: error while running "rails server", could not find gem mysql 0.2.6
On Jul 14, 5:46 am, "Azar F." <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi every one, > > I use windows7 os, recently I have installed ruby 1.8.7 and rails 3 and > mysql 5.5. > I have created a new project by using this command: > " rails new simple -d mysql" > but when I want to run it by " rails server", this error appears: > "could not find gem mysql 0.2.6,runtime in any of the gem sources listed > in your gem file" > I should mention that: > 1) I have installed mysql not mysql2 by using "gem install mysql" and I > have modified Gemfile and databases.yml by replacing mysql instead of > mysql2. > > 2) when I run "bundle install" and then run "rails server" again, I have > the same problem. > > Can anyone help me? >Please read this: http://blog.mmediasys.com/2011/07/07/installing-mysql-on-windows-7-x64-and-using-ruby-with-it/ MySQL and mysql2 binary gems are very sensitive about the libmysql.dll present in your system. -- Luis Lavena -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Azar F.
2011-Jul-14 18:34 UTC
Re: error while running "rails server", could not find gem mysql 0.2.6
Luis Lavena wrote in post #1010699:> On Jul 14, 5:46am, "Azar F." <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> 1) I have installed mysql not mysql2 by using "gem install mysql" and I >> have modified Gemfile and databases.yml by replacing mysql instead of >> mysql2. >> >> 2) when I run "bundle install" and then run "rails server" again, I have >> the same problem. >> >> Can anyone help me? >> > > Please read this: > >http://blog.mmediasys.com/2011/07/07/installing-mysql-on-windows-7-x64-and-using-ruby-with-it/> > MySQL and mysql2 binary gems are very sensitive about the libmysql.dll > present in your system. > > -- > Luis LavenaDear Luis Thank you very much for your help, But after all,I already have the problem. I followed the instruction in your link but.... I also replaced different version of libmysql.dll to Ruby187\bin folder, but the error still exists. can you help me? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2011-Jul-14 19:43 UTC
Re: error while running "rails server", could not find gem mysql 0.2.6
On Jul 14, 9:46 am, "Azar F." <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi every one, > > I use windows7 os, recently I have installed ruby 1.8.7 and rails 3 and > mysql 5.5. > I have created a new project by using this command: > " rails new simple -d mysql" > but when I want to run it by " rails server", this error appears: > "could not find gem mysql 0.2.6,runtime in any of the gem sources listed > in your gem file" > I should mention that: > 1) I have installed mysql not mysql2 by using "gem install mysql" and I > have modified Gemfile and databases.yml by replacing mysql instead of > mysql2.What does your Gemfile look like? if it is requesting a specific version of the mysql gem then make sure that you''re asking for a version that actually exists (there is no 0.2.6 version of the mysql gem, the current version of that is 2.8.something or 2.9.something) Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.