How to install mysql gem on Mac os 10.6 ?

Posted by Mr_Nizzle on Stack Overflow See other posts from Stack Overflow or by Mr_Nizzle
Published on 2010-04-26T20:12:46Z Indexed on 2010/04/26 20:13 UTC
Read the original article Hit count: 118

Filed under:
|
|
|

i just installed MAMP on this iMac and the rubygems but when i run:

sudo gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config

gives me


Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
 ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h

Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql-2.8.1 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out ERROR: could not find gem — locally or in a repository ERROR: could not find gem –with-mysql-config=/usr/local/mysql/bin/mysql_config locally or in a repository

how can i install this gem ?

© Stack Overflow or respective owner

Related posts about mac

Related posts about ruby