【发布时间】:2014-06-13 21:34:01
【问题描述】:
我正在尝试通过 RVM 安装较旧的 Ruby 版本,但安装失败并出现我从未见过的错误。我已经更改了rvm_max_time_flag,但没有帮助。我可以在这里做什么?
rvm install 1.9.3p484
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.9/x86_64/ruby-1.9.3p484.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/nandersen/.rvm/rubies/ruby-1.9.3p484, this may take a while depending on your cpu(s)...
ruby-1.9.3p484 - #downloading ruby-1.9.3p484, 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
curl: (22) The requested URL returned error: 404 Not Found
The requested url does not exist(22): 'http://cache.ruby-lang.org/pub/ruby/./ruby-1.9.3p484.tar.bz2'
Checking fallback: http://ftp.ruby-lang.org/pub/ruby/./ruby-1.9.3p484.tar.bz2
Checking fallback: http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby/./ruby-1.9.3p484.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.
【问题讨论】:
-
它构建的 URL 不正确 - 它应该是 cache.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.bz2
-
我可以指定我不想在某处使用的 URL @sevenseacat 吗?
-
我不知道 RVM,但请尝试改用
rvm install 1.9.3-p484。也许这会修复 URL。
标签: ruby-on-rails ruby rvm