2013-05-02 43 views
1

項目捆綁包在json安裝時停止時出錯。但我並沒有要求在Gemfile中使用json。目前在RVM中的Ruby是1.9.2-p290,嚴格的。Bundler在json安裝中暫停,即使Gemfile中沒有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

請參閱http://stackoverflow.com/questions/14009767/rails-install-xcrun-error-failed-to-exec-real-xcrun/18244859#18244859瞭解獲取'json' gem編譯的選項。 – 2013-08-15 01:15:27

回答

1

即使您沒有明確列出json作爲依賴項,您正在使用的其他寶石可能會這樣做。因此,Bundler將把它包含在捆綁的列表中。

要檢查使用哪個庫json,可以檢查Gemfile.lock文件或使用bundle viz繪製依賴關係樹。

+0

感謝Simone。在'Gemfile.lock'中的許多'json'引用中,唯一的'1.7.7'版本在路徑'GEM> specs:> json(1.7.7)'中。其他人來自較少/沒有版本。我怎樣才能確定哪些是適當的依賴父項? – 2013-05-02 15:38:49

相關問題