How to get past the `require’: no such file to load — mkmf (LoadError) when installing the “mysql” gem
- 3 Comment
If you're new here, you may want to start with my most popular posts. Then, subscribe to my RSS feed to stay updated. Thanks for visiting!
Google Query: extconf.rb:1:in `require’: no such file to load — mkmf (LoadError)
After some of my readers tried my tutorial on “How to install ruby on rails in Ubuntu Gutsy Gibbon (7.10)” they ran into some trouble installing the “mysql” gem. I finally found the answer after some Googling at Mentalized.net. The summary is below.
“mkmf.rb” is part of the “ruby1.8-dev” package. Since I already had this package installed on my system, I was not experiencing the error. I installed a fresh copy of Ubuntu Gutsy Gibbon (7.10) in VMware and sure enough, I encountered the error when installing the “mysql” gem.
-You need to install the “ruby1.8-dev” package by typing the following in the Terminal:
sudo apt-get install ruby1.8-dev
-You should be able to go ahead and install the “mysql” gem now by typing the following in the Terminal:
sudo gem install mysql
I apologize if you were getting that error when you followed my previous tutorial. The tutorial has been updated with this information. Happy Coding!
Technorati Tags: Ubuntu, Ruby on Rails
Related posts:
- How to install ruby on rails on Ubuntu Gutsy Gibbon (7.10)
- How to get past the “(Gem::Exception) SSL is not installed on this system” error when installing Ruby on Rails
- How to get past the “Could not find rubygems-update (> 0) in any repository” Error
- How to work around the “no address associated with hostname.(SocketError)” when installing Rails
- How to create a MySQL database from the command-line client
3 Comments on this post
Trackbacks
-
jamslug said:
Thanks a lot, it works perfect!
June 16th, 2008 at 7:20 am -
Jithesh said:
Thanks man I was struggling with this I was searching for this ans Now my rail works fine thanks again
July 24th, 2008 at 2:38 am -
hstagner said:
I am glad that I could help.
Thank you for reading!
Regards,
Harley Stagner
July 24th, 2008 at 8:24 am


