标签:uri vol next anon already app this success enabled
Homebrew是mac的包管理器,他可以安装任何你想安装的东西
安装方法:在命令行输入
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Failed to connect
解决方法:host中添加代理
sudo vim /etc/hosts
199.232.28.133 raw.githubusercontent.com
或者
/usr/bin/ruby -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
用brew 安装APP出现Error: Checksum mismatch.说明下载的文件和期望的hashCode对不上,删掉对应的文件就行了
==> Downloading https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz Already downloaded: /Users/yn/Library/Caches/Homebrew/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz Error: Checksum mismatch. Expected: b065e5e3783954f3e65d8d3a6377ca51649bfcfa21b356b0dd70490f74c6bd86 Actual: c7a175313a4ff6ce5ca5e5587ac1f20cd2115c1f1c3f1c4a73aa0a6d9ce3fa97 Archive: /Users/yn/Library/Caches/Homebrew/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz To retry an incomplete download, remove the file above. Error: Failed to install Homebrew Portable Ruby (and your system version is too old)! Failed during: /usr/local/bin/brew update --force --quiet
删除对应文件,然后重新执行brew安装脚本
rm /Users/yn/Library/Caches/Homebrew/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz
静静等待,loading..... 出现如下画面证明安装成功
==> This script will install: /usr/local/bin/brew /usr/local/share/doc/homebrew /usr/local/share/man/man1/brew.1 /usr/local/share/zsh/site-functions/_brew /usr/local/etc/bash_completion.d/brew /usr/local/Homebrew Press RETURN to continue or any other key to abort ==> /usr/bin/sudo /usr/sbin/chown qidiantianxia:admin /usr/local/Homebrew ==> Downloading and installing Homebrew... HEAD is now at 2c83ea733 Merge pull request #10370 from Rylan12/brew-release ==> Downloading https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz ######################################################################## 100.0% ==> Pouring portable-ruby-2.6.3_2.yosemite.bottle.tar.gz ==> 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: - Run `brew help` to get started - Further documentation: https://docs.brew.sh
检查是否安装成功
brew help
标签:uri vol next anon already app this success enabled
原文地址:https://www.cnblogs.com/qidiantianxia/p/14320056.html