Forum: Ruby on Rails again and again: no such file to load -- mysql

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
zaqwery (Guest)
on 2009-02-18 10:19
(Received via mailing list)
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
vimal (Guest)
on 2009-02-18 12:31
(Received via mailing list)
Have you ensured whether your mysql services are running

Regards,
Vimal
zaqwery (Guest)
on 2009-02-18 12:51
(Received via mailing list)
Sure, mysql starts at startup, there is a mysql task in Activity
Monitor, so mysql works, I can create and drop databases. I guess it's
different problem, something wrong with mysql.rb driver, although
mysql 2.7 gem installed successfuly...
Jeff E. (Guest)
on 2009-02-18 23:15
(Received via mailing list)
zaqwery (Guest)
on 2009-02-19 00:14
(Received via mailing list)
I have already tried this , the one for Leopard (I have 10.5.6)
Today i reinstalled ruby ,rubygems, rails, mysql gem..... it gives me
same error all the way!!!!

!!! 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 don't know what to do... Perhaps formating harddrive to non case-
sensitive filesystem, and reinstalling entire system is the last I can
do..... I tried many ways....
Didn't you, guys having Leopard, encounter this problem with
mysql.rb???? did you? Windows users have solution fixing this bug with
some .dll, why Mac users don't have it?

 Who had the same please assist! plsssss
zaqwery (Guest)
on 2009-02-19 00:16
(Received via mailing list)
UPDATE:
I tried to install mysql gem 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 --include-dependencies

and the error has gone somehow.... Could "--include-dependencies" make
this?
This topic is locked and can not be replied to.