Can't install CocoaPods (And I don't have Maverick!)

I am unable to install CocoaPods. And please don't refer me to the other threads talking about Ruby 2.0 and Maverick. I have none of them!

I am on 10.8.5 with the latest XCode and Command line tools installed.

This is the errer message I get:

CocoaPods are not installed:
WARNING: You don't have /Users/thierryleveque/.gem/ruby/1.8/bin in your PATH, gem executables will not run.
ERROR: Error installing cocoapods:
ERROR: Failed to build gem native extension.  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb creating Makefile  make xcrun cc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I. -DJSON_GENERATOR -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -arch x86_64 -g -O3 -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -c generator.c xcrun:
Error: could not stat active Xcode path '/Applications/'. (No such file or directory) cc -arch i386 -arch x86_64 -pipe -bundle -undefined dynamic_lookup -o generator.bundle generator.o -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L. -arch i386 -arch x86_64 -lruby -lpthread -ldl -lobjc clang: error: no such file or directory: 'generator.o' make: *** [generator.bundle] Error 1   Gem files will remain installed in /Users/thierryleveque/.gem/ruby/1.8/gems/json-1.8.0 for inspection. Results logged to /Users/thierryleveque/.gem/ruby/1.8/gems/json-1.8.0/ext/json/ext/generator/gem_make.out

The weird part is the reference to Xcode5-DP3! Where does it come from? I am running the final version, not the dp3.

I have the exact same problem on 2 different Mac.

I have never used Ruby before. I I run ruby -v on the command line I get: ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]

Any idea??

1 comment

Ok, I fixed myself the problem.
I used this command:
sudo xcode-select --switch /Applications/

The default Xcode was still linked to an old dev preview version of xcode....


Please sign in to leave a comment.