ERROR: Failed to build gem native extension. #106
Comments
http://stackoverflow.com/questions/19580685/installing-rails-on-mavericks |
Thanks, @pcholberg. 783a43f adds a note about this in the README. |
If you're running Xcode 5.1, the command line tools don't work for nokogiri. You'll need to download the Late october 2013 tools from Apple. Once you do that run
to set up your machine to use the Xcode 5.0.X command line tools, then run gem install cupertino
|
I was getting an unused argument error for nokogiri with Xcode 5.1 but it was fixed by adding this to the beginning of the gem install command. ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future |
Way better solution! Thanks. |
neither one of these solutions worked for me |
Just for future reference, here's how I got cupertino running on mavericks:
I had to explicitly install nokogiri 1.5.11 as that's the version that cupertino appears to depend on. Note that I already had the latest command line tools installed. |
Still having this issue: glados:cupertino heron$ sudo xcode-select -s /Library/Developer/CommandLineTools/
checking for main() in -lstdc++... yes make "DESTDIR=" clean make "DESTDIR=" make failed, exit code 2 Gem files will remain installed in /usr/local/Cellar/ruby/2.1.2/lib/ruby/gems/2.1.0/gems/unf_ext-0.0.6 for inspection. |
Thanks, @biddster.It works for me. |
The workaround listed by @biddster works for me, too. |
Thank you @biddster. This worked for me as well. |
@biddster is right, nokogiri 1.5.11 works |
@gnustep How did you resolve that problem? I'm installing another Gem that uses unf_ext, and I'm having exactly the same problem as yours with Xcode 7.3.1
|
MacBook-Pro-di-Loreto:appledoc admin$ sudo gem install cupertino
Building native extensions. This could take a while...
ERROR: Error installing cupertino:
ERROR: Failed to build gem native extension.
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.5.11 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.5.11/ext/nokogiri/gem_make.out
The text was updated successfully, but these errors were encountered: