通过RVM在OS X 10.11.6上安装ruby-2.3.0时缺少符号 [英] Missing symbol when installing ruby-2.3.0 on OS X 10.11.6 by RVM

查看:99
本文介绍了通过RVM在OS X 10.11.6上安装ruby-2.3.0时缺少符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法通过rvm安装ruby-2.3.0,但可以与ruby-2.2.0一起使用.

I was failing to install ruby-2.3.0 by rvm, while it worked with ruby-2.2.0.

错误消息如下

Error running '__rvm_make -j 1',
showing last 15 lines of /Users/Rookie/.rvm/log/1472865655_ruby-2.3.0/make.log
compiling ./missing/explicit_bzero.c
compiling ./missing/setproctitle.c
compiling dmyenc.c
linking miniruby
config.status: creating ruby-runner.c
dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
Referenced from: /Users/Rookie/.rvm/src/ruby-2.3.0/./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: /Users/Rookie/.rvm/src/ruby-2.3.0/./miniruby (which was built for Mac OS X 10.12)
Expected in: /usr/lib/libSystem.B.dylib

make: *** [.rbconfig.time] Trace/BPT trap: 5
+__rvm_make:0> return 2
There has been an error while running make. Halting the installation.

/usr/lib/libSystem.B.dylib在这里...

/usr/lib/libSystem.B.dylib is where it is...

有什么办法可以解决?

推荐答案

我在Ruby 2.3.1(El Capitan)上遇到了同样的问题.好消息我解决了. :-)

I had the same problem with Ruby 2.3.1 (El Capitan). The good news I solved it. :-)

我遵循了此页面上的安装教程: https://gorails.com/setup/osx/10.10-yosemite

I followed the installation tutorial on this page: https://gorails.com/setup/osx/10.10-yosemite

第一步之后

brew install rbenv ruby-build

有一条消息,例如:安装XCode命令行工具".也许在更新XCode之后需要重新安装它们.

There is a message like: "Install the XCode Command Line Tools." Maybe they need to be reinstalled after updating XCode.

建议,运行:

sudo xcode-select --install

之后,Ruby的构建和安装对我有用.

After that the Build and Install of Ruby worked for me.

这篇关于通过RVM在OS X 10.11.6上安装ruby-2.3.0时缺少符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆