2014-10-01 151 views
23

我正尝试在RVM上安装Ruby 2.1.3。我安装了最新版本的XCode,并且我有一个干净的rvm安装。使用RVM安装Ruby 2.1.3时出错

我基本上做

rvm autolibs brew 
rvm install ruby-2.1.3 

一切看起来是工作正常,但后来我得到这个错误:

传递到证书更新空路径,功能叠加:requirements_osx_update_openssl_cert_run rvm_requiremnts_fail_or_run_action __rvm_osx_ssl_certs_ensure_for_ruby __rvm_osx_ssl_certs_ensure_for_ruby_except_jruby external_import_setup external_import main

唯一参照在开发人员检查硬编码路径时,我可以得到这个问题是Ruby 2.1.1的一个问题,但我看不到这是如何相关的。

以下是完整的跟踪我越来越:

Searching for binary rubies, this might take some time. 
Found remote file https://rubies.travis-ci.org/osx/10.9/x86_64/ruby-2.1.3.tar.bz2 
Checking requirements for osx_brew. 
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date. 
Requirements installation successful. 
ruby-2.1.3 - #configure 
ruby-2.1.3 - #download 
    % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
    0  0 0  0 0  0  0  0 --:--:-- --:--:-- --:--:--  0 
100 6864k 100 6864k 0  0 1143k  0 0:00:06 0:00:06 --:--:-- 1412k 
No checksum for downloaded archive, recording checksum in user configuration. 
ruby-2.1.3 - #validate archive 
ruby-2.1.3 - #extract 
ruby-2.1.3 - #validate binary 
ruby-2.1.3 - #setup 
ruby-2.1.3 - #gemset created /Users/jaco/.rvm/gems/[email protected] 
ruby-2.1.3 - #importing gemset /Users/jaco/.rvm/gemsets/global.gems...................................................................... 
ruby-2.1.3 - #generating global wrappers.............. 
ruby-2.1.3 - #gemset created /Users/jaco/.rvm/gems/ruby-2.1.3 
ruby-2.1.3 - #importing gemsetfile /Users/jaco/.rvm/gemsets/default.gems evaluated to empty gem list 
ruby-2.1.3 - #generating default wrappers.............. 
/Users/jaco/.rvm/scripts/functions/support: line 480: 2804 Trace/BPT trap: 5  "$ruby_path" -rrbconfig -e '\ 
    File.open("'"$config_path"'","w") { |file| 
     RbConfig::CONFIG.sort.each{|key,value| 
     file.write("#{key.gsub(/\.|-/,"_")}=\"#{value.gsub("$","\\$")}\"\n") 
     } 
    } 
    ' > /dev/null 2>&1 
Empty path passed to certificates update, functions stack: requirements_osx_update_openssl_cert_run rvm_requiremnts_fail_or_run_action __rvm_osx_ssl_certs_ensure_for_ruby __rvm_osx_ssl_certs_ensure_for_ruby_except_jruby external_import_setup external_import main 
+0

我发现了一个提到'Trace/BPT trap:5'的线程,它似乎是由一个陈旧的终端会话或一些奇怪的字符无意中添加到/ etc/paths.d中引起的。 'echo $ PATH'的输出看起来是否正常?请参阅:http://apple.stackexchange。com/questions/113379/how-to-debug-trace-bpt-trap-5 – thohl 2014-10-01 21:18:49

+0

你是否更新rvm?如果是这样,应该有一条消息来运行'$ rvm requirements'。最近,在升级OSX 10.6.8上的rvm后,我遇到了一些安装ruby 2.1的问题。命令'$ rvm requirements'在openssl中做了一些事情,搞砸了我的一些rubies和gemset,而且我必须重新安装ruby 2.0 +,像这样:'$ rvm reinstall ruby​​-2.1.2 --with-openssl -dir = $ HOME/.rvm/opt/openssl'您可以尝试使用同一个标志进行安装。 – 7stud 2014-10-01 23:37:35

回答

42

我有同样的问题

rvm reinstall 2.1.3 --disable-binary

工作对我来说 (基于Fresh Installs of RVM and Ruby 2.1.1 - dyld library/pathing error)。

+0

谢谢,至于为什么会出现这种情况,我还是很困惑。我想我可能没有开始使用'rvm autolibs brew',它现在正在与我联系 – 2014-10-02 15:07:01

+3

只是一个小的通知:'rvm重新安装ruby-2.1.3 --disable-binary'你需要在之前加入'ruby -'其版本号。否则没有工作。 – 2014-10-14 08:58:57

+0

当我这样做时,它会消耗CPU,并且永不完成 – DGM 2014-10-15 00:30:19

2

快速修复:

brew install gpg 
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 
rvm get stable 

较长的描述:

从输出端安装红宝石2.1期间 'RVM获得稳定的'

Warning, RVM 1.26.0 introduces signed releases and automated check of 
signatures when GPG software found. 

Assuming you trust Michal Papis import the mpapis public key (downloading 
the signatures). 

ADN然后。 4我得到了:

GPG signature verification failed for '$HOME/.rvm/archives/rvm-installer' - 'https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer.asc'! 
try downloading the signatures: 

gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 

or if it fails: 

command curl -sSL https://rvm.io/mpapis.asc | gpg --import - 

the key can be compared with: 

https://rvm.io/mpapis.asc 
https://keybase.io/mpapis 

使用该输出,我想出了上面列出的快速修复。这意味着你仍然可以使用二进制红宝石。

0

我有同样的问题! 最后我找到了这个解决方案:

为了解决这个问题,我不得不执行两个命令如下:

$ brew update && brew upgrade 

在那之后,我跑这个命令:

$ rvm reinstall 2.1.3 --disable-binary 

它作品,它为我成功安装。

Install Ruby 2.1.3 on Mac OS X - Mavericks

希望它可能对您有用!