Problem with rake db:migrate

Posted by Shreyas Satish on Stack Overflow See other posts from Stack Overflow or by Shreyas Satish
Published on 2010-04-08T05:12:43Z Indexed on 2010/04/08 5:13 UTC
Read the original article Hit count: 547

Filed under:
|
|
|
|

When I try rake db:migrate, I get the following error: !!! 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

And when I try to "gem install mysql"

Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb Can't find header files for ruby. Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1 for inspection.

I checked the rubygems folder and mysql gem has been installed. Any ideas? Cheers

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about rake