Rails MySQL driver install failed

1 post / 0 new
#1 Mon, 03/17/2008 - 15:55
BobH

Rails MySQL driver install failed

I tried running the Ruby install script. The error is below but not certain what action I should take.

Now installing Ruby on Rails version 2.0.2 ..

  Rails MySQL driver install failed :

  Select which gem to install for your platform (x86_64-linux)
   1. mysql 2.7.3 (mswin32)
   2. mysql 2.7.1 (mswin32)
   3. mysql 2.7 (ruby)
   4. mysql 2.6 (ruby)
   5. Skip this gem
   6. Cancel installation
  > 3
  Building native extensions.  This could take a while...
  ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
      ERROR: Failed to build gem native extension.

  ruby extconf.rb install mysql --include-dependencies -- --with-mysql-include=/usr/include/mysql --with-mysql-lib=/usr/lib/mysql
  can't find header files for ruby.


  Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
  Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out

.. failed! See the error message above for the reason why.