Version 3.2 fails to build on Mac OS 10.8
Closed this issue · 7 comments
I'm running Mac OS 10.8 and I'm trying to install fraction, but I continue to get the following error:
gem install fraction
Building native extensions. This could take a while...
ERROR: Error installing fraction:
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 /usr/local/gems/fraction-0.3.2 for inspection.
Results logged to /usr/local/gems/fraction-0.3.2/gem_make.out
This appears to be the same issue as Issue #3, but despite it being marked as fixed it's not, at least not for OS 10.8.
Any help or insight you could afford would be great.
Maybe due to upgrading to Mountain Lion? See if this helps: http://coderwall.com/p/dtbuqg
Yep, looks like something changed with the system ruby which prevents the gem from installing. can you paste/attach your /usr/local/gems/fraction-0.3.2/gem_make.out?
/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
Here's my gem_make.out, and thanks Paul, I'll check that out.
This link from Paul's is particularly helpful to suss out environment issues:
http://robots.thoughtbot.com/post/27985816073/the-hitchhikers-guide-to-riding-a-mountain-lion
I'll see if there are any source changes necessary.
Awesome, will look at both.
I reproduced your problem, but following the directions at that link and reinstalling ruby from homebrew cleared everything up and the gem installs fine for me.
Awesome, will do. Thanks.