[英]Error while installing Ruby 1.9.3 on Ubuntu 12.04
我已經有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.
嘗試執行以下操作:
ping ftp.ruby-lang.org
rvm reload
。 sudo /etc/init.d network restart
也許它可以幫助您了解問題所在。
您總是可以卸載2.0.0並再次安裝1.9.3和2.0.0或重新安裝rvm(但這不是好方法)
:)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.