2014-12-07 137 views
1

我尝试使用以下命令我的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 

这是什么造成的?

然后我用Google搜索,并在这里找到了同样的问题:

Errno::ECONNREFUSED No connection could be made because

但我不明白,下面的命令是如何解决这个问题:

Try to use environment variables to set the proxies: 
export http_proxy="http://user:[email protected]:port" 
export HTTP_PROXY="http://user:[email protected]:port" 

我只安装指南针在我的本地主机上。 USER,PASS和@SERVER应该替换为什么? 预先感谢您

回答