我如何在公司代理的Mac上安装Ruby gems? [英] How can I install Ruby gems on a Mac behind a corporate proxy?

查看:98
本文介绍了我如何在公司代理的Mac上安装Ruby gems?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在公司防火墙代理后面的MacOS OS X 10.5.1上安装ruby gems。但是我收到一个关于连接被拒绝的错误



如何在Mac上安装Ruby gems代理?

解决方案

指定要使用的代理:

  export HTTP_PROXY ='http:// username:password@proxyserver.net:port /'

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

I am trying to install ruby gems on my MacOS OS X 10.5.1 behind a corporate firewall proxy. But I am getting an error about connection refused.

How can I install Ruby gems on a Mac behind a corporate proxy?

解决方案

Specify the proxy to use:

export HTTP_PROXY='http://username:password@proxyserver.net:port/'

If it's a Windows proxy (common in EnterpriseLand), it will use a custom NTLM authentication, which normal Unix apps don't do. To fix it, get NTLMAPS - a small Python app that acts as a local regular proxy and handballs your credential via NTLM authentication to the Windows proxy.

这篇关于我如何在公司代理的Mac上安装Ruby gems?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆