记录Mac下安装Homebrew遇到的问题

公司一直用的windows开发,自己的本时不时的用用吧,记录下安装Homebrew遇到的问题。写写日记总归是好事嘛!
mac版本号:10.14.6

Homebrew

引用 Homebrew官网 的一句介绍:macOS(或 Linux)缺失的软件包的管理器

安装

打开terminal终端,复制以下安装命令回车执行即可

$	/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

很遗憾,我直接安装失败了

HEAD is now at 205a08653 Merge pull request #6850 from Homebrew/dependabot/bundler/Library/Homebrew/thor-1.0.1
==> Downloading https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.6.3.mavericks.bottle.tar.gz
#############################                                             40.5%
curl: (56) LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
Error: Checksum mismatch.
Expected: ab81211a2052ccaa6d050741c433b728d0641523d8742eef23a5b450811e5104
  Actual: 63fbfe688bbd4d0ad8d20e93fac1623f17e4607ad6ff3fc0c537753f31f5e953
 `Archive: /Users/***/Library/Caches/Homebrew/portable-ruby-2.6.3.mavericks.bottle.tar.gz`
To retry an incomplete download, remove the file above.
Error: Failed to install vendor Ruby.
Failed during: /usr/local/bin/brew update --force

安装时出现了校验不匹配的错误,这时只要删除Archive后的包重新执行安装命令即可

$	rm  /Users/***/Library/Caches/Homebrew/portable-ruby-2.6.3.mavericks.bottle.tar.gz

重新安装,会有一个提示告诉你

	==> 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 //按“返回”继续,或按任何其他键中止

直接敲回车就好,剩下的就是等待进度条跑到100%了,
安装好后可以输入 brew help 查看相关的帮助。

你可能感兴趣的:(记录Mac下安装Homebrew遇到的问题)