no such file to load -- mysql

Hello all,

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:

Install libdbd-mysql-ruby1.8

Sorry is this libmysql-ruby1.8

There is no gem with this name. I installed dbd-mysql-0.4.2 but still doesn't work.

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

I am on Mac OSX 10.4

Here is the other workaround link. Missed in the first post: http://forums.aptana.com/viewtopic.php?f=20&t=7563

Subbu wrote:

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!

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

Adding to the list of stuck people. I'm on Ubuntu 9.10.

install mysql啊

庄杰 wrote:

install mysql啊

Installing mysql doesn't fix it. That's the problem. I've attached the output from installing mysql, in case there's a clue there.

thanks,

-nate

Attachments: http://www.ruby-forum.com/attachment/4481/gemOut.txt