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

... 还是我太懒了?

注意:rubysspi-1.2.4不起作用。

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


当前回答

这完全有效:

gem install --http-proxy http://COMPANY.PROXY.ADDRESS $gem_name

其他回答

我在一个代理后面工作,刚刚通过直接从http://rubygems.org下载安装了SASS。

然后我运行sudo gem install [path/to/ downloads /gem/file]。我不能说这对所有宝石都适用,但它可能会帮助一些人。

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

它适用于OSX 10.9.3。

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

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

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

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

这完美地解决了我的问题:

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

你可能需要添加你的用户名和密码:

gem install -p http://[username]:[password]@proxy_ip:proxy_port compass

如果您使用的是*nix系统,请使用以下命令:

export http_proxy=http://${proxy.host}:${port}
export https_proxy=http://${proxy.host}:${port}

然后试试:

gem install ${gem_name}