【发布时间】:2014-12-07 11:41:10
【问题描述】:
我尝试使用以下命令在我的 OS X 终端上安装指南针:
sudo gem install compass
但是有错误提示:
ERROR: Could not find a valid gem 'compass' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ECONNREFUSED: Connection refused - Connection refused (https://rubygems.org/latest_specs.4.8.gz) ERROR: Possible alternatives: compass
这是什么原因造成的?
然后我用谷歌搜索并在这里发现了同样的问题:
Errno::ECONNREFUSED No connection could be made because
但我不明白以下命令如何解决问题:
Try to use environment variables to set the proxies:
export http_proxy="http://user:pass@server.com:port"
export HTTP_PROXY="http://user:pass@server.com:port"
我只在我的本地主机上安装指南针。应该用什么替换 USER、PASS 和 @SERVER? 提前谢谢你
【问题讨论】:
标签: terminal gem sudo http-proxy compass