Installing mySql GEM on Ubuntu?



I am running Linx Mint, a version of Ubuntu, and I installed Ruby
and Rails. However, when I try to install the mySql package via. gem, "gem
install mysql" I get an error message (See below) with no idea how to fix
the error. I looked on the net (Google), but all suggestions do not work
with this Linux.

Also, as far as I know, I have all of the correct mySql drivers/headers,
etc.

=================== error message ==================================

Select which gem to install for your platform (i486-linux)
1. mysql 2.7.3 (mswin32)
2. mysql 2.7.1 (mswin32)
3. mysql 2.7 (ruby)
4. mysql 2.6 (ruby)
5. mysql 2.5.1 (ruby)
6. Cancel installation
3
Building native extensions. This could take a while...
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1

ERROR: While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
.



Relevant Pages

  • Re: MySQL gem problem on OS X
    ... >> require 'mysql' ... >> is no mysql gem. ... With Rails it works. ... > by doing gem install again. ...
    (comp.lang.ruby)
  • Re: require mysql is failing
    ... *FINALLY* managed to get the mysql gem installed. ... install, it gave me several options, I chose which was for the mysql ... (ruby) gem. ...
    (comp.lang.ruby)
  • Re: gem + libxml
    ... Do I need ruby source? ... linux:~ # gem install libxml-ruby ... ruby extconf.rb install libxml-ruby\n ...
    (comp.lang.ruby)
  • Re: Is it possible to force a Ruby program to run as a proc name different than "ruby"?
    ... they put a wrapper script in the given Ruby installation ... Unfortunatelly executables installed by gems are not sufixed so there is ... This is ugly when you install a ruby1.8 gem which requires some ...
    (comp.lang.ruby)
  • Gem program -- cannot install libxslt-ruby-0.3.6.gem
    ... I am trying to install some version of libxslt-ruby on my CentOS 4.7 ... to build gem native extension. ... My version of ruby is the stock version for CentOS 4.7: ... actionmailer ...
    (comp.lang.ruby)