2016-09-22 61 views
-1

我是Ruby新手& Rails。不能與此錯誤安裝:BUILD FAILED(OS X 10.11.6使用ruby-build 20160913)如何解決此問題

Downloading ruby-2.3.1.tar.bz2... 
-> https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.bz2 
Installing ruby-2.3.1... 

BUILD FAILED (OS X 10.11.6 using ruby-build 20160913) 

Inspect or clean up the working tree at /var/folders/1p/hwq8dn9x7b76xf8_b1kg5z800000gn/T/ruby-build.20160922084422.20582 
Results logged to /var/folders/1p/hwq8dn9x7b76xf8_b1kg5z800000gn/T/ruby-build.20160922084422.20582.log 

Last 10 log lines: 
    Referenced from: /private/var/folders/1p/hwq8dn9x7b76xf8_b1kg5z800000gn/T/ruby-build.20160922084422.20582/ruby-2.3.1/./miniruby (which was built for Mac OS X 10.12) 
    Expected in: /usr/lib/libSystem.B.dylib 

dyld: Symbol not found: _clock_gettime 
    Referenced from: /private/var/folders/1p/hwq8dn9x7b76xf8_b1kg5z800000gn/T/ruby-build.20160922084422.20582/ruby-2.3.1/./miniruby (which was built for Mac OS X 10.12) 
    Expected in: /usr/lib/libSystem.B.dylib 

make: *** [encdb.h] Trace/BPT trap: 5 
make: *** Waiting for unfinished jobs.... 
make: *** [.rbconfig.time] Trace/BPT trap: 5 

回答

1

我有同樣的問題,並執行後:

xcode-select --install 

當時我能夠完成紅寶石編譯。

+1

只要按照你的instuctions和一切工作順利!非常感謝。 :d –