error when installing mysql ruby gem on OSX 10.6.3

Posted by kapil.israni on Stack Overflow See other posts from Stack Overflow or by kapil.israni
Published on 2010-05-19T02:43:46Z Indexed on 2010/05/19 2:50 UTC
Read the original article Hit count: 514

Filed under:
|
|
|

So I am getting the same issue as mentioned here - http://stackoverflow.com/questions/1366746/gem-install-mysql-failure-in-snow-leopard

But I haven't been able to get it fixed using the answers on this link.

Here's a brief history -

  • I had MAMP on my machine,
  • but now I downloaded the latest MySQL from mysql.com and installed version 5.1.46
  • this new version runs fine and client "mysql" is able to connect
  • and I also have XCode v3.2.1, since someone mentioned that it can cause issues.

Here's the error -

**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 --with-mysql-config=/usr/local/mysql/bin/mysql_config
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**

© Stack Overflow or respective owner

Related posts about ruby

Related posts about rubygems