json 설치시 오류가 발생하여 프로젝트 번들이 중지되었습니다. 하지만 저는 Gemfile에서 json을 요구하지 않습니다. RVM의 현재 Ruby는 엄격한 1.9.2-p290입니다.Gemfile에 json이 없더라도 Bundler가 json 설치에서 중단됩니다.
해결 방법이 없습니다. 어쨌든 도움이 되니?
Installing json (1.7.7)
Gem::Installer::ExtensionBuildError: 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 '/Developer'. (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
i686-apple-darwin11-llvm-gcc-4.2: generator.o: No such file or directory
i686-apple-darwin11-llvm-gcc-4.2: generator.o: No such file or directory
lipo: can't figure out the architecture type of: /var/folders/ft/gswz6cs52wb9jh_v5h2yt5_h0000gn/T//ccvGNawc.out
make: *** [generator.bundle] Error 1
Gem files will remain installed in /Users/noAlvaro/.rvm/gems/[email protected]_project/gems/json-1.7.7 for inspection.
Results logged to /Users/noAlvaro/.rvm/gems/[email protected]_project/gems/json-1.7.7/ext/json/ext/generator/gem_make.out
An error occurred while installing json (1.7.7), and Bundler cannot continue.
Make sure that `gem install json -v '1.7.7'` succeeds before bundling.
도움이 될만한 내용이 있으면 알려 주시기 바랍니다. :)
'json' 보석을 컴파일하는 옵션은 http://stackoverflow.com/questions/14009767/rails-install-xcrun-error-failed-to-exec-real-xcrun/18244859#18244859를 참조하십시오. –