簡體   English   中英

使用RVM安裝Ruby 2.1.3時出錯

[英]Error when installing Ruby 2.1.3 with RVM

我正在嘗試使用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

我有同樣的問題

rvm reinstall 2.1.3 --disable-binary

為我工作(基於RVM和Ruby 2.1.1的全新安裝 - dyld庫/路徑錯誤 )。

快速解決:

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

使用該輸出,我想出了上面列出的快速修復。 這意味着您仍然可以使用二進制紅寶石。

我有同樣的問題! 最后我找到了這個解決方案:

要解決這個問題,我只需執行以下兩個命令:

$ brew update && brew upgrade

之后,我運行了這個命令:

$ rvm reinstall 2.1.3 --disable-binary

它工作,它已成功安裝給我。

在Mac OS X上安裝Ruby 2.1.3 - Mavericks

希望它對你有用!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM