This seems to be a regular problem. But I couldn’t find a solution
that worked for me. I am getting the following error when I do rake
db:create:
!!! The bundled mysql.rb driver has been removed from Rails 2.2.
Please install the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load – mysql
My first action was to install mysql. I did that with:
sudo gem install mysql – --with-mysql-config=which mysql_config
but that didn’t solve the issue. Then I tried the following:
What OS are u on?
On linux, (I read from Johalf’s email), you need to install libmysql-
ruby1.8 package. This is not a ruby gem but a ubuntu .deb or
redhad .rpm package.
On Cygwin+windows, you need to build mysql from source, which may take
Hello!
I’ve got same problem! Can’t continue working with Rails!
I have OSX 10.5.6. Mysql 5.0.67, Latest Ruby , Rubygems, Rails 2.2.2,
and mysl gem 2.7 installed in this way
sudo env ARCHFLAGS="-arch i386" gem install mysql – --with-mysql-
dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-
mysql-include=/usr/local/mysql/include --with-mysql-config=/usr/local/
mysql/bin/mysql_config
when I do rake db:migrate
!! The bundled mysql.rb driver has been removed from Rails 2.2. Please
install the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load – mysql
I’ve been googling for 3 days and none of the solutions work for me.
I’ve reinstalled mysql ,ruby and rails several times… got same
error. Please help!
Thanks beforehand
I have same problem. I’ve installed MySQL 5.0.67. Rails 2.2.2.
RubyGems and especially this mysql gem 2.7 (# sudo env ARCHFLAGS="-
arch i386" gem install mysql – --with-mysql-config=/usr/local/mysql/
bin/mysql_config) I’m on MacOS 10.5.6.
When I do rake db:migrate:
!!! The bundled mysql.rb driver has been removed from Rails 2.2.
Please install the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load – mysql
Have been Googling for 2 days - none of the solutions work.
Reinstalled Ruby Gems and Rails twice already - same error.
Please assist me. Thanks beforehand!