SolutionCottage.com
Posted  06 Dec 2009 - 10:30:19

Category: Ruby on Rails


mysql gem fails to install macos x

Issue:
When you try to install the mysql gem on Mac OS X you get the following error message:
"*** extconf.rb failed ***
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.".

Solution:
Install the gem with this command:

sudo env ARCHFLAGS="-arch i386" gem install mysql -- \ --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib \ --with-mysql-include=/usr/local/mysql/include








0 comments:








© SolutionCottage 2008-2011 9/23/2017 11:48:30 AM