我正在尝试使用RVM安装Ruby 2.1.3。我安装了最新版本的XCode,并且我已经安装了rvm。
我基本上在做
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/ruby-2.1.3@global
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 :(得分:42)
我遇到了同样的问题
rvm reinstall 2.1.3 --disable-binary
为我工作 (基于Fresh Installs of RVM and Ruby 2.1.1 - dyld library/pathing error)。
答案 1 :(得分:2)
快速修复:
brew install gpg
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
rvm get stable
更长的说明:
从'rvm get stable'的输出
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).
然后在安装ruby-2.1.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
使用该输出,我想出了上面列出的快速修复程序。这意味着您仍然可以使用二进制红宝石。
答案 2 :(得分:0)
我遇到了同样的问题! 最后我找到了这个解决方案:
要解决这个问题,我必须执行以下两个命令:
$ brew update && brew upgrade
之后,我运行了这个命令:
$ rvm reinstall 2.1.3 --disable-binary
它有效,它已成功安装给我。
Install Ruby 2.1.3 on Mac OS X - Mavericks
希望它对你有用!