Fix for Error Installing do_mysql Datamapper Adapter on Ubuntu

Installing Datamapper on Ubuntu 9.04, I got this mysterious error:

$ sudo gem install do_mysql
Building native extensions.  This could take a while...
ERROR:  Error installing do_mysql:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb install do_mysql
extconf.rb:3:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:3

After much googling and trying other solutions like installing libmysqlclient16-dev, I stumbled upon Al Hoang's related problem and solution:

$ sudo aptitude install ruby-dev

Then

$ sudo gem install do_mysql
Building native extensions.  This could take a while...
Successfully installed do_mysql-0.10.0
1 gem installed

Installing libmysqclient16-dev could have anticipated a problem that would have arisen later--it may or may not be necessary.

Share and Enjoy:
  • del.icio.us
  • digg
  • NewsVine
  • Reddit
  • TailRank


Thank you for reading this post. You can now Leave A Comment (0) or Leave A Trackback.

Post Info

This entry was posted on Wednesday, September 30th, 2009 and is filed under software.

You can follow any responses to this entry through the Comments Feed. You can Leave A Comment, or A Trackback.



Previous Post: Amazon Packages and Ships OEM Hard Drives Loose in Box with Two Air Pillows and Bubble Wrap ONLY »
Next Post: How to Get MagicJack and Lifecam Cinema Working on Windows 7 64-bit »

Read More

Related Reading:



Leave a Reply

Note: Any comments are permitted only because the site owner is letting you post, and any comments will be removed for any reason at the absolute discretion of the site owner.

forum seo