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?

On Jul 14, 5:46am, “Azar F.” [email protected] 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 L.

On Jul 14, 9:46am, “Azar F.” [email protected] 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.

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

Luis L. wrote in post #1010699:

On Jul 14, 5:46am, “Azar F.” [email protected] 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 L.

Dear 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?