[英]Error installing Ruby 2.2.2 with RVM on Ubuntu 14.04
Here's what. 这是什么。 I first did:
我先做了:
rvm get stable
rvm install ruby-2.2.2
No deal. 没有成交。 It shows me the following:
它向我展示了以下内容:
$ 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.
I increased the timeout as told: 我告诉你增加超时时间:
echo "export rvm_max_time_flag=20" >> ~/.rvmrc
But no deal. 但没有交易。 I also did
rvm get head
and did it all over again with higher timeouts but it was still no good. 我也做了
rvm get head
并且在更高的超时时间重新做了但是它仍然没有好处。
what can I do to correctly install ruby-2.2.2 on ubuntu? 我该怎么做才能在ubuntu上正确安装ruby-2.2.2?
I feel lame, but the problem was that my VM's internet connection was failing. 我觉得很蹩脚,但问题是我的VM的互联网连接失败了。 (I guess I missed Troubleshooting-101, hehe)
(我想我错过了故障排除-101,呵呵)
I changed the PC's network and the Virtual Box VM didn't update or connect to the new network. 我更改了PC的网络,Virtual Box VM没有更新或连接到新网络。 To add to the issue, none of the commands (
rvm get stable
; rvm get head
; rvm install ruby-2.2.2
) raised a warning, so I was led to think it was something else. 为了解决这个问题, 没有一个命令(
rvm get stable
; rvm get head
; rvm install ruby-2.2.2
)引发了一个警告,所以我被认为是别的东西。
"Errors should never pass silently." “错误绝不应该默默无闻。” (The Zen of Python)
(Python的禅宗)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.