RVM/rbenv Ruby 的官方 FTP 挂了么?

timothyye · 2013年08月06日 · 最后由 timothyye 回复于 2013年08月06日 · 8939 次阅读

root@MyVPS:/home/timothy# rvm install 1.9.3 Searching for binary rubies, this might take some time. No binary rubies available for: debian/7.1/x86_64/ruby-1.9.3-p448. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Installing requirements for debian, might require sudo password. Requirements installation successful. Installing Ruby from source to: /usr/local/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... % 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 The requested url does not exist(22): 'http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.bz2' Trying ftp:// URL instead. curl: (6) Couldn't resolve host 'ftp' There was an error(6), please check /usr/local/rvm/log//*.log There has been an error fetching the ruby interpreter. Halting the installation.

提示无法解析 ftp 主机名?

是的,挂了

#2 楼 @timothyye 用淘宝的 RubyGems 镜像 http://ruby.taobao.org/ $ sed -i 's!ftp.ruby-lang.org/pub/ruby!ruby.taobao.org/mirrors/ruby!' $rvm_path/config/db

需要 登录 后方可回复, 如果你还没有账号请 注册新账号