部署 curl: (7) couldn't connect to host

_why · 2012年03月10日 · 最后由 _why 回复于 2012年03月10日 · 9579 次阅读

我在 Linux 下面安装 Ruby 时候碰到了无法连接到主机的问题,请问可以通过替换地址啥的莱解决吗?

ruby-1.9.2-p318 - #fetching ruby-1.9.2-p318 - #downloading ruby-1.9.2-p318, this may take a while depending on your connection...

curl: (7) couldn't connect to host There was an error, please check /home/jwu/.rvm/log//*.log. Next we'll try to fetch via http. Trying ftp:// URL instead.

curl: (7) couldn't connect to host There was an error, please check /home/jwu/.rvm/log//*.log There has been an error while trying to fetch the source.
Halting the installation. There has been an error fetching the ruby interpreter. Halting the installation.

我已通过 apt 将 ruby 和 gem 装上了,但貌似得升级,我去搜搜该怎么升级

ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux] $ gem -v 1.3.5

这都搞不定,你还用 _why 这个名字。

开个玩笑,连接失败是由于 ruby 镜像服务不太稳定的原因。

见笑了哈,我想让 Mr._why 激励我的学习...

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