在 Ubuntu 14.04 上使用 RVM 安装 Ruby 2.2.2 时出错
Error installing Ruby 2.2.2 with RVM on Ubuntu 14.04
这是什么。
我第一次做:
rvm get stable
rvm install ruby-2.2.2
没有交易。它向我展示了以下内容:
$ rvm install ruby-2.2.2
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/14.04/i386/ruby-2.2.2.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /home/myuser/.rvm/rubies/ruby-2.2.2, this may take a while depending on your cpu(s)...
ruby-2.2.2 - #downloading ruby-2.2.2, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0Warning: Transient problem: timeout Will retry in 2 seconds. 3 retries left.
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0Warning: Transient problem: timeout Will retry in 2 seconds. 2 retries left.
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0Warning: Transient problem: timeout Will retry in 2 seconds. 1 retries left.
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0curl: (6) Could not resolve host: cache.ruby-lang.org
There was an error(6).
Checking fallback: http://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.bz2
Checking fallback: http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.bz2
No fallback URL could be found, try increasing timeout with:
echo "export rvm_max_time_flag=20" >> ~/.rvmrc
There has been an error fetching the ruby interpreter. Halting the installation.
我按照说明增加了超时时间:
echo "export rvm_max_time_flag=20" >> ~/.rvmrc
但没有成交。我也做了 rvm get head
并用更高的超时重新做了一遍,但仍然不好。
如何在 ubuntu 上正确安装 ruby-2.2.2?
我感觉很差劲,但问题是我的 VM 的互联网连接失败了。 (我想我错过了 Troubleshooting-101,呵呵)
我更改了 PC 的网络,但 Virtual Box VM 没有更新或连接到新网络。为了增加这个问题,none 命令( rvm get stable
; rvm get head
; rvm install ruby-2.2.2
)发出了警告,所以我导致认为这是别的东西。
"Errors should never pass silently."(Python的禅)
这是什么。 我第一次做:
rvm get stable
rvm install ruby-2.2.2
没有交易。它向我展示了以下内容:
$ rvm install ruby-2.2.2
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/14.04/i386/ruby-2.2.2.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /home/myuser/.rvm/rubies/ruby-2.2.2, this may take a while depending on your cpu(s)...
ruby-2.2.2 - #downloading ruby-2.2.2, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0Warning: Transient problem: timeout Will retry in 2 seconds. 3 retries left.
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0Warning: Transient problem: timeout Will retry in 2 seconds. 2 retries left.
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0Warning: Transient problem: timeout Will retry in 2 seconds. 1 retries left.
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0curl: (6) Could not resolve host: cache.ruby-lang.org
There was an error(6).
Checking fallback: http://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.bz2
Checking fallback: http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.bz2
No fallback URL could be found, try increasing timeout with:
echo "export rvm_max_time_flag=20" >> ~/.rvmrc
There has been an error fetching the ruby interpreter. Halting the installation.
我按照说明增加了超时时间:
echo "export rvm_max_time_flag=20" >> ~/.rvmrc
但没有成交。我也做了 rvm get head
并用更高的超时重新做了一遍,但仍然不好。
如何在 ubuntu 上正确安装 ruby-2.2.2?
我感觉很差劲,但问题是我的 VM 的互联网连接失败了。 (我想我错过了 Troubleshooting-101,呵呵)
我更改了 PC 的网络,但 Virtual Box VM 没有更新或连接到新网络。为了增加这个问题,none 命令( rvm get stable
; rvm get head
; rvm install ruby-2.2.2
)发出了警告,所以我导致认为这是别的东西。
"Errors should never pass silently."(Python的禅)