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.
MySQL and mysql2 binary gems are very sensitive about the libmysql.dll
present in your system.
--
Luis Lavena
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.
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)