求助 安装 homebrew 失败

2022-04-18 22:48:51 +08:00
 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
1371 次点击
所在节点    macOS
19 条回复
dingwen07
2022-04-18 23:07:04 +08:00
你这看样子是不是安装脚本,也不是官方的脚本,请去这里:

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

你这代理配置有问题吧。
neptuno
2022-04-19 09:48:24 +08:00
1 、这是卸载脚本 2 、代理少配置了个 0 3 、不要看那种野鸡教程哇
justin2018
2022-04-19 10:17:56 +08:00
✈️全局

https://brew.sh/

使用官网脚本
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
wunonglin
2022-04-19 10:26:17 +08:00
我英文不好的都看出来是你 127.0.0.1:789 链接失败了
samport
2022-04-19 10:40:56 +08:00
@justin2018 感谢各位!
ConerNight
2022-04-19 11:15:29 +08:00
xman99
2022-04-19 11:56:27 +08:00
m1 安装的,实测可以,https://zhuanlan.zhihu.com/p/341831809
chenzheyu
2022-04-19 15:18:12 +08:00
你 clash 应该是 7890 吧,直接关掉应该就没问题了
Askiz
2022-04-19 15:54:28 +08:00
如果要用代理下载的话
把之前所有源配置都删掉
然后写个 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