自制安装的OSX代理问题 [英] OSX proxy issue with homebrew install

查看:93
本文介绍了自制安装的OSX代理问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试对问题进行必要的搜索,但没有得到所需的答案.

I have tried to do the required search for my problem but I did not get quite the answer I need.

目标:安装Homebrew&与自制软件一起工作 我正在使用的操作系统:OS X El Capitan

Objective: to install homebrew & work with homebrew OS I am using : OS X El Capitan

以下是我的问题: 我是OS X&的新手.自制酒.我正在尝试使用以下命令从我的家庭网络安装homebrew:

The following is my problem: I am new to OS X & Homebrew. I am trying to install homebrew from my home network using the following command:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

但出现以下错误:

curl: (7) Failed to connect to "company_domain_ip" port "port#": Operation timed out

看起来执行红宝石卷曲的事情正试图通过公司代理&端口,即使我在家庭网络中也是如此.我尝试从网络偏好设置">高级">代理"切换代理.但这无济于事.

Looks like executing the ruby curl thing is trying to go through the company proxy & port even if I am in my home network. I trying to switch of proxy from Network Preferences > advanced > proxies. But doesn't help.

如果我在办公室网络中使用红宝石卷曲物品安装了brew,则可以正常安装.但是,当我尝试执行任何操作"时,brew会给出Bad URI错误.不知道这是Brew问题还是我相对于代理使用Brew的方式中的问题.

If I install brew using the ruby curl thing in my office network, then it installs fine. But, brew gives the Bad URI error when I try to do a "brew anything". Not sure if this a brew problem or some problem in the way I am using brew with respect to the proxy.

我认为,如果在非办公室osx上绕过该代理服务器,则可能会解决该问题.那么如何关闭osx中的http代理呢?这样,当我至少运行以下命令时,它首先会起作用.

I think that if I get around this proxy when in non-office on my osx then, it might solve the issue. So how can I switch off http proxy in osx ? so that when I at least run the following command it works first of all.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

然后酿造也将开始工作.

Then may be brew will also start working.

在此先感谢您提供的帮助.

Thanks in advance for any help offered.

推荐答案

设置ALL_PROXY环境变量帮助我解决了公司代理背后的所有CLI问题(无论是npm还是自制).像这样:

setting the ALL_PROXY environment variable helped me with all my cli problems (whether it is npm or homebrew) behind our corporate proxy. Like this:

export ALL_PROXY=https://your.domain.dev:3128

希望它对您有用.

这篇关于自制安装的OSX代理问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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