2013-08-06 54 views
0

正確安裝導軌我嘗試錯誤intsall在Mac上軌依然存在我不能在Mac

我很沮喪,並希望一些建議

Building native extensions. This could take a while... 
ERROR: Error installing rails: 
ERROR: Failed to build gem native extension. 

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb 
creating Makefile 

make "DESTDIR=" 
xcrun cc -I. -I. -  I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal- darwin12.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -c atomic_reference.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 atomic_reference.bundle atomic_reference.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: 'atomic_reference.o' 
make: *** [atomic_reference.bundle] Error 1 


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/atomic-1.1.12 for inspection. 
Results logged to /Library/Ruby/Gems/1.8/gems/atomic-1.1.12/ext/gem_make.out 
+0

我覺得你缺少Xcode命令行工具。 – j03w

+0

我想我需要詳細說明一下......所以首先如果你還沒有安裝Xcode,你可以從Mac AppStore下載它。您可以從Xcode內下載Xcode命令行工具。那麼你可能想要安裝你自己的Ruby版本。我強烈建議使用[rbenv](https://github.com/sstephenson/rbenv),但[RVM](https://rvm.io/)也可以。 – j03w

+0

我已經安裝了xcode命令行工具.. – jabez128

回答