安装
使用国内脚本安装
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
安装完成后使用brew
安装tcping
试试
brew install tcping
发现报错
Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!
Please create a new installation in /opt/homebrew using one of the
"Alternative Installs" from:
https://docs.brew.sh/Installation
You can migrate your previously installed formula list with:
brew bundle dump
可以看到错误提示
lease create a new installation in /opt/homebrew using one of the
“Alternative Installs” from:
https://docs.brew.sh/Installation
需要安装一个新的installation
安装installation
官网地址
我们按官网地址一步一步来
mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
eval "$(homebrew/bin/brew shellenv)"
brew update --force --quiet
chmod -R go-w "$(brew --prefix)/share/zsh"
再次安装tcping
可以看到安装完成了