我后面的防火墙以ntlm模式运行Microsoft ISA服务器。哈希任何人成功地获得他们的Ruby宝石安装/更新通过Ruby SSPI宝石或其他方法?

... 还是我太懒了?

注意:rubysspi-1.2.4不起作用。

这也适用于“igem”,IronRuby项目的一部分


当前回答

如果你想使用SOCKS5代理,你可以尝试rubygems-socksproxy https://github.com/gussan/rubygems-socksproxy。

它适用于OSX 10.9.3。

其他回答

rubysspi-1.3.1适用于我的Windows 7,使用这一页的说明:

http://www.stuartellis.eu/articles/installing-ruby/

我一直在工作时使用cntlm (http://cntlm.sourceforge.net/)。配置非常类似于ntlmaps。

Gem安装——http-proxy http://localhost:3128 _name_of_gem_

工作得很好,也允许我把我的Ubuntu盒子连接到ISA代理。

查看http://cntlm.wiki.sourceforge.net/获取更多信息

快速回答:为安装/更新添加带有参数的代理配置

gem install --http-proxy http://host:port/ package_name

gem update --http-proxy http://host:port/ package_name

我尝试了其中的一些解决方案,但没有一个奏效。我终于找到了一个适合我的解决方案:

gem install -p http://proxy_ip:proxy_port rails

使用-p参数传递代理。我使用的是Gem版本1.9.1。

创建一个.gemrc文件(在/etc/gemrc或~/目录下)。例如,主厨gem在/opt/chef/embedded/etc/ Gemrc)中包含:

http_proxy: http://proxy:3128

然后你可以像往常一样安装宝石。