2013-05-02 4 views
1

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. 

도움이 될만한 내용이 있으면 알려 주시기 바랍니다. :)

+0

'json' 보석을 컴파일하는 옵션은 http://stackoverflow.com/questions/14009767/rails-install-xcrun-error-failed-to-exec-real-xcrun/18244859#18244859를 참조하십시오. –

답변

1

명시 적으로 종속성으로 json을 나열하지 않더라도 사용중인 다른 보석이이를 수행 할 수 있습니다. 결과적으로 Bundler는 번들리스트에 번들러를 포함시킵니다.

json을 사용하는 라이브러리를 확인하려면 Gemfile.lock 파일을 검사하거나 bundle viz을 사용하여 종속성 트리를 그릴 수 있습니다.

+0

Simone에게 감사드립니다. 'Gemfile.lock'에있는 많은'json' 참조들 중에서 유일한'1.7.7' 버전은'GEM> specs :> json (1.7.7)'경로에 있습니다. 다른 버전은 덜/전혀 버전이 아닙니다. 적절한 종속성 부모 란 것을 어떻게 알 수 있습니까? –

관련 문제