在Ubuntu 12.04上安装Ruby 1.9.3时出错

时间:2013-12-27 16:02:46

标签: ruby-on-rails ruby

我已经有了ruby-2.0.0-p0

我正在尝试安装Ruby 1.9.3

rvm install ruby-1.9.3-p448

面对以下错误

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.

1 个答案:

答案 0 :(得分:-1)

尝试做这件事:

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

也许它可以帮助您了解问题所在。

您始终可以卸载2.0.0并再次安装1.9.3和2.0.0 或重新安装rvm(但这不是好办法)

:)