专业的编程技术博客社区

网站首页 > 博客文章 正文

mac 安装homebrew(MAC 安装Genesis2000)

baijin 2024-08-21 11:22:53 博客文章 4 ℃ 0 评论

brew 是安装包的管理工具,很多软件都可以用brew安装,命令很简单,首先我们要安装brew。

1.官网(https://brew.sh/)的方法

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

这个安装不成功,返回

curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

网上有一些说是修改配置文件的方法,我这边没有试,在网上找到了说是换镜像的方法。

2.换镜像

/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"

结果提示:

Warning: Ruby版本Homebrew安装脚本已被废弃,新版脚本使用Bash重写。
请使用以下命令:
  /bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"

然后回车,然后刷刷地下载执行,居然安装成功了,有点突然,看网上说会有其他的报错,需要修改配置信息的,但是我这居然就直接成功了,也不知道是不是运气好吧。

==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (or will be during this `install` run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
-  恭喜,安装成功!运行 `brew help` 开始体验吧
- 更多文档: 
    https://docs.brew.sh
    https://brew.idayer.com

最后,用brew -v命令验证一下,真的安装好了。

brew -v
Homebrew 3.4.11

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表