« Nice List of Interface Ideas
» Best data center ever.

things i've learned more than once

gem mysql install … to ‘failed to build’ on os x

10.29.08 | Comment?

If you’re on OS X, and you do this:

dave@home > sudo gem install mysql

And then you get this:

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 install mysql
can’t find header files for ruby.

Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.7/gem_make.out

… it might be because you haven’t installed the XCode library yet.

And now you can rest assured, knowing that you’re not the first person to have made this mistake…

related

have your say

Add your comment below, or trackback from your own site. Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

:

:


« Nice List of Interface Ideas
» Best data center ever.