mac 安装brew

Posted bohu83

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mac 安装brew相关的知识,希望对你有一定的参考价值。

快速安装

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" speed

会提示选择镜像。我选择的是1 中科大

后面各种进度,但是提示报错了

Error:

homebrew-core is a shallow clone.

homebrew-cask is a shallow clone.

按照提示的方法试试:

 git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow

真的文件很大,比较慢

git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
remote: Enumerating objects: 1173486, done.
remote: Counting objects: 100% (1173483/1173483), done.
remote: Compressing objects: 100% (348887/348887), done.
remote: Total 1167740 (delta 819307), reused 1164288 (delta 815967), pack-reused 0
Receiving objects: 100% (1167740/1167740), 506.74 MiB | 278.00 KiB/s, done.
Resolving deltas: 100% (819307/819307), completed with 5525 local objects.

git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow

 brew update

 当然还是装不上Telnet

brew install telnet
Warning: You are using macOS 10.14.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.

telnet: A full installation of Xcode.app is required to compile
this software. Installing just the Command Line Tools is not sufficient.

Xcode can be installed from the App Store.
Error: telnet: An unsatisfied requirement failed this build.
bohu83MacBook-Pro:workspace benmu$ brew install telnet

缺了xcode.但是我的系统版本低。低配磁盘快满了,不装了。

以上是关于mac 安装brew的主要内容,如果未能解决你的问题,请参考以下文章

mac brew 安装是怎么回事

Mac使用Mac安装brew

Mac系统下安装/卸载brew(带踩坑)

13.Mac 必备工具之 brew

Mac 必备工具之 brew

Mac Brew 安装及配置