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
!!! The bundled mysql.rb driver has been removed from Rails 2.2.
Please install the mysql gem and try again: gem install mysql.
no such file to load – mysql
My first action was to install mysql. I did that with:
sudo gem install mysql – --with-mysql-config=
but that didn’t solve the issue. Then I tried the following:
sudo env ARCHFLAGS="-arch i386" gem install -V mysql – --with-mysql-
sudo env ARCHFLAGS="-arch i686" gem install -V mysql – --with-mysql-
Even they don’t solve the issue even though all 3 of the above
installed mysql properly. My ‘gem list’ shows:
mysql (2.7.3, 2.7)
which means I have mysql installed. (or am I wrong?)
There is a workaround here (posts 2 & 3):
but they suggest tweaking the ruby mysql version. I plan to use mysql
in production. So I want to install the C version of mysql.
There is another solution here:
but it’s a window solution (they provide a DLL file).