将ruby从1.8升级到1.9.3时出现ruby错误

时间:2015-08-13 12:10:01

标签: ruby

我想使用rvm install将ruby从1.8.7升级到1.9.3。

升级到支持" puppetlabs_spec_helper"因为只有当红宝石1.9.3出现时才会这样。

安装时出现以下错误

]# rvm reinstall ruby-1.9.3-p551
ruby-1.9.3-p551 - #removing src/ruby-1.9.3-p551..
ruby-1.9.3-p551 - #removing rubies/ruby-1.9.3-p551..
Searching for binary rubies, this might take some time.
No binary rubies available for: redhat/6/x86_64/ruby-1.9.3-p551.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for redhat.
Requirements installation successful.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p551, this may take a while depending on your
ruby-1.9.3-p551 - #downloading ruby-1.9.3-p551, this may take a while depending on your connection...
ruby-1.9.3-p551 - #extracting ruby-1.9.3-p551 to /usr/local/rvm/src/ruby-1.9.3-p551....
ruby-1.9.3-p551 - #applying patch /usr/local/rvm/patches/ruby/GH-488.patch.
ruby-1.9.3-p551 - #applying patch /usr/local/rvm/patches/ruby/1.9.3/CVE-2015-1855-p484.patch.
ruby-1.9.3-p551 - #applying patch /usr/local/rvm/patches/ruby/ssl_no_ec2m.patch.
ruby-1.9.3-p551 - #configuring.............................................
ruby-1.9.3-p551 - #post-configuration..
ruby-1.9.3-p551 - #compiling...................................................................
ruby-1.9.3-p551 - #installing........................
ruby-1.9.3-p551 - #making binaries executable..
curl: (28) connect() timed out!
There was an error while trying to resolve rubygems version for 'latest'.
Halting the installation.

我通过"导出http_proxy"

启用了代理

我也对下面的命令感到困惑

 ruby -v
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]

]# /opt/puppet/bin/ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]

它如何显示不同的版本。

0 个答案:

没有答案