CocoaPods / search.cocoapods.org

This is the CocoaPods search engine repo, please direct CocoaPods issues to the main CocoaPods repository.
25 stars 11 forks source link

Failed to build gem native extension. #19

Closed meaning-matters closed 11 years ago

meaning-matters commented 11 years ago

sudo gem install cocoapods Password:

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

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

mmarquesbr commented 11 years ago

I had the same issue... If you're using OS 10.7 and XCode 4.3 open Xcode preferences, select the "Downloads" button, select the "Components" tab of Downloads, highlight "Command Line Tools" and install. - After installing the problem disappeared.

floere commented 11 years ago

Hi guys, thanks for the feedback! This is the issue tracker of the cocoapods.org website –> find the issues of CocoaPods itself here: https://github.com/CocoaPods/CocoaPods/issues. Cheers!