使用RVM安装Ruby 2.1.3时出错 [英] Error when installing Ruby 2.1.3 with RVM

查看:178
本文介绍了使用RVM安装Ruby 2.1.3时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用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_import_set_ruby

当开发人员检查硬编码路径时,我唯一能得到的参考是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库/路径错误).

I'm trying to install Ruby 2.1.3 with RVM. I have the latest version of XCode installed and I have a clean install of rvm.

I'm basically doing

rvm autolibs brew
rvm install ruby-2.1.3

Everything looks to be working ok, but then I get this error:

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

The only references I can get to this is an issue with Ruby 2.1.1 when a developer checked in a hardcoded path, but I can't see how this is related.

Here is the full trace I'm getting:

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

解决方案

I had the same problem

rvm reinstall 2.1.3 --disable-binary

worked for me (based on Fresh Installs of RVM and Ruby 2.1.1 - dyld library/pathing error).

这篇关于使用RVM安装Ruby 2.1.3时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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