Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Installation & Upgrades
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Installation & Upgrades
For questions about upgrading and installation of your new Ubuntu OS.

 
Thread Tools Display Modes
Old July 7th, 2006   #1
jmvbxx
5 Cups of Ubuntu
 
Join Date: Feb 2006
Beans: 23
Ubuntu 9.10 Karmic Koala
gem install mysql ***extconf.rb failed***

I've installed rails (and it works) and now I want to be able to connect to a mysql database.

The database.yml file tells me to install the mysql drivers by typing:

gem install mysql

This is the error I receive:

Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.


Any help is greatly appreciated! Thank you!
jmvbxx is offline   Reply With Quote
Old September 7th, 2006   #2
XtremeBain
First Cup of Ubuntu
 
Join Date: Jun 2006
Beans: 3
Re: gem install mysql ***extconf.rb failed***

Hi there,

I was experiencing the same problems myself. I looked at mkmf.log and realized that gems couldn't load the mysqlclient libraries, which led to the following solutions:

If you're using MySQL 5.0:
Code:
sudo apt-get install libmysqlclient15-dev
If you're using MySQL 4.x:
Code:
sudo apt-get install libmysqlclient12-dev
Hope this helps
XtremeBain is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:26 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry