[英]BUILD FAILED (OS X 10.11.6 using ruby-build 20160913) how to solve this
I'm new to Ruby & Rails.我是 Ruby 和 Rails 的新手。 Can't install with this error :
无法安装,出现此错误:
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
I had the same issue and after executing:我有同样的问题,执行后:
xcode-select --install
I was then able to complete the ruby compilation.然后我就能够完成 ruby 编译。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.