简体   繁体   English

BUILD FAILED (OS X 10.11.6 using ruby​​-build 20160913) 如何解决这个问题

[英]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.

相关问题 构建失败(OS X 10.14.6 使用 ruby-build 20190828)通过 rbenv 安装 Ruby - BUILD FAILED (OS X 10.14.6 using ruby-build 20190828) Installing Ruby via rbenv 在 OSX catalina(10.15.1) 中使用 rbenv 安装 ruby​​-2.4.0 时,构建失败(OS X 10.15.1 使用 ruby​​-build 20191124) - BUILD FAILED (OS X 10.15.1 using ruby-build 20191124) when installing ruby-2.4.0 with rbenv in OSX catalina(10.15.1) 构建失败(Ubuntu 20.04 使用 ruby-build 20210119) - BUILD FAILED (Ubuntu 20.04 using ruby-build 20210119) 构建失败(macOS 12.1 使用 ruby-build 20211203(ruby 3.0.2)macOS Monterey - BUILD FAILED (macOS 12.1 using ruby-build 20211203 (ruby 3.0.2) macOS Monterey ruby-build:未找到定义:2.2.1 - ruby-build: definition not found: 2.2.1 无法使用rbenv和ruby-build构建Ruby 2.5.0 - Failing to build Ruby 2.5.0 with rbenv and ruby-build 对于2.4.2和2.5.1,gcloud app部署在ruby-build上均失败 - gcloud app deploy fails on ruby-build for both 2.4.2 and 2.5.1 rbenv:即使安装了ruby-build,也没有这样的命令“install” - rbenv: no such command “install” even though ruby-build is installed rbenv 不能在带有 rbenv 和 ruby​​-build 的 ubuntu 上工作? - rbenv doesn't work on ubuntu with rbenv and ruby-build? 尝试在Mac OS X 10.14.5上通过rbenv安装Ruby时出现BUILD FAILED - Getting BUILD FAILED when trying to install Ruby via rbenv on Mac OS X 10.14.5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM