2010-06-24 74 views

回答

2

指定代理使用方法:

export HTTP_PROXY='http://username:[email protected]:port/' 

如果它是一个Windows代理(在EnterpriseLand常见),它会使用自定义NTLM身份验证,在正常的Unix应用程序不这样做。要修复它,请获取NTLMAPS - 一个小型Python应用程序,它充当本地常规代理,并通过NTLM身份验证将您的凭据移交给Windows代理。

+1

手动安装它不是为我工作在OS X 10.10.2,宝石2.2.2。 env var被设置,wget也可以下载文件(所以var是正确的)。使用'--http代理'的作品([见这里](http://stackoverflow.com/questions/3111181/ruby-gem-installation-problem-on-mac-which-is-behind-firewall))。 – sofacoder 2015-04-01 15:20:21

0

下载宝石到你的硬盘并做

gem install gem_file.gem