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 online now Edit/Delete Message

What platform is this on?

Peter Wright
[email protected]

Personal Blog -> http://peterwright.blogspot.com
Agile Development Blog -> http://exceeding-expectations.blogspot.com

Try this:

sudo gem install mysql – --with-mysql-config

I had the same problem and it worked for m.

Thank You,
Ben J.
E: [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs