求助 安装 homebrew 失败

2022 年 4 月 18 日
 samport
刚开始用 mac ,照着网上的装 homebrew 失败,开启退出梯子都不行
$ /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"
--> curl: (7) Failed to connect to 127.0.0.1 port 789: Connection refused

https://imgur.com/a/LohoXel
2960 次点击
所在节点    macOS
19 条回复
dingwen07
2022 年 4 月 18 日
你这看样子是不是安装脚本,也不是官方的脚本,请去这里:

https://brew.sh
samport
2022 年 4 月 18 日
@dingwen07 也不管用
得到 curl: (7) Failed to connect to 127.0.0.1 port 789: Connection refused
https://imgur.com/a/OYJwttl
Gave2620
2022 年 4 月 18 日
@samport 是不是终端代理配错了,7890 端口。
Ourobotos
2022 年 4 月 19 日
gitee 上的不用挂代理吧,为啥 curl 会连 127 ?
Granthese
2022 年 4 月 19 日
你这也不是『安装』脚本啊,“HomebrewUninstall.sh”怎么看都是『卸载』脚本吧
要么『挂梯子+官方安装脚本』,要么『不挂梯子+国内源安装脚本』(推荐清华源)
mctgyt
2022 年 4 月 19 日
看名称这是一个卸载脚本啊大哥
seanzxx
2022 年 4 月 19 日
安装脚本看起来是这样的呀:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
xtinput
2022 年 4 月 19 日
你的终端代理出问题了
QingStone
2022 年 4 月 19 日
脚本错误+代理错误
imaning
2022 年 4 月 19 日
你这是网络不通啊,明显的代理不通咯。
jfdnet
2022 年 4 月 19 日
connect to 127.0.0.1 port 789

你这代理配置有问题吧。
neptuno
2022 年 4 月 19 日
1 、这是卸载脚本 2 、代理少配置了个 0 3 、不要看那种野鸡教程哇
justin2018
2022 年 4 月 19 日
✈️全局

https://brew.sh/

使用官网脚本
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
shakaraka
2022 年 4 月 19 日
我英文不好的都看出来是你 127.0.0.1:789 链接失败了
samport
2022 年 4 月 19 日
@justin2018 感谢各位!
ConerNight
2022 年 4 月 19 日
xman99
2022 年 4 月 19 日
m1 安装的,实测可以,https://zhuanlan.zhihu.com/p/341831809
chenzheyu
2022 年 4 月 19 日
你 clash 应该是 7890 吧,直接关掉应该就没问题了
Askiz
2022 年 4 月 19 日
如果要用代理下载的话
把之前所有源配置都删掉
然后写个 shell 脚本:
# 配置 http 访问的
export https_proxy=http://127.0.0.1:7890
# 配置 https 访问的
export http_proxy=http://127.0.0.1:7890
# 配置 http 和 https 访问
export all_proxy=socks5://127.0.0.1:7891

上面的端口自己看你的 clash 用什么端口
保存后在终端运行一下
curl google.com 看代理有没有生效
生效后直接运行 brew 安装命令即可

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/847770

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX