简体   繁体   English

在Ubuntu 12.04上安装Ruby 1.9.3时出错

[英]Error while installing Ruby 1.9.3 on Ubuntu 12.04

I already have ruby-2.0.0-p0 我已经有ruby-2.0.0-p0

And I am trying to install Ruby 1.9.3 我正在尝试安装Ruby 1.9.3

rvm install ruby-1.9.3-p448

Facing following error 面对跟随错误

Searching for binary rubies, this might take some time.

No binary rubies available for: ubuntu/12.04/i386/ruby-1.9.3-p448.

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/icicle/.rvm/rubies/ruby-1.9.3-p448, this may take a while depending on your cpu(s)...

ruby-1.9.3-p448 - #downloading ruby-1.9.3-p448, this may take a while depending on your connection...

curl: (6) Couldn't resolve host 'www.dnsbalance.ring.gr.jp'

There was an error(6).

Checking fallback: http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.bz2

Checking fallback: http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.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.

try to do this things: 尝试执行以下操作:

  • ping ftp.ruby-lang.org
  • rvm reload . rvm reload
  • sudo /etc/init.d network restart

Maybe it helps you understand where is problem. 也许它可以帮助您了解问题所在。

You always can uninstall 2.0.0 and install 1.9.3 and 2.0.0 again or reinstall rvm ( but it's not good way ) 您总是可以卸载2.0.0并再次安装1.9.3和2.0.0或重新安装rvm(但这不是好方法)

:) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM