"gem install cocoapods" fails on fresh 10.8.4 install #1300

Closed
orta opened this Issue Aug 19, 2013 · 6 comments

Comments

Projects
None yet
6 participants
Owner

orta commented Aug 19, 2013

Error:

Building native extensions.  This could take a while...
ERROR:  Error installing cocoapods:
    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

/cc @speednoisemovement

Contributor

rivera-ernesto commented Aug 20, 2013

I think it's related to #1108 and more precisely to selecting the proper Xcode versions to be used with the xcode-select --switch <xcode_path> command.

Owner

alloy commented Aug 20, 2013

That, and on 10.8.x you need to install the xcode command-line tools, without it you’ll run into this issue as well.

Owner

fabiopelosin commented Aug 22, 2013

Can we close or move this to the docs repo. Unfortunately there isn't much that we can do about this on the development side until we switch to a different distribution mechanism.

Owner

alloy commented Aug 22, 2013

if the cause was that the command-line tools weren’t installed, then that’s even already documented in the installation guide, although it might be improved upon.

Also, with Xcode5 and later, command line tools are automagically installed with the Xcode install, so this should be a non-issue going forward

Contributor

goonzoid commented Sep 11, 2013

Also, with Xcode5 and later, command line tools are automagically installed with the Xcode install, so this should be a non-issue going forward

Is this definitely the case? It doesn't align with my current experiences installing Xcode 5 GM last night. I certainly had to go to settings to install command line tools independently. Is it possible you're getting mixed up with the new location for the command line tools on OS X 10.9?

jzapater pushed a commit to jzapater/CocoaPods that referenced this issue Sep 17, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment