MAC下brew安装

一、好言

大家好,给大家介绍一下,这是我的记笔记的地方。

二、背景

今天都在蹭鹿晗的热度,好言就这么写了,哈哈。

三、内容

我的mac用了两年了呀,不过我一直没用brew命令,因为后面没在mac下做开发,公司使用window开发,最近准备做点东西,安装thrift,就使用brew试试。

点击brew官网:
在自己的terminal中输入该命令

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

MAC下brew安装_第1张图片
图片.png
MAC下brew安装_第2张图片
图片.png
MAC下brew安装_第3张图片
图片.png
Error: Checksum mismatch.
Expected: 34ce9e4c9c1be28db564d744165aa29291426f8a3d2ef806ba4f0b9175aedb2b
Actual: ffc9e98e9029e1d0dd538c70ce86aedde124a86fc2b8ba17b7f12bb9b43c2aaa
Archive: /Users/Mahone/Library/Caches/Homebrew/portable-ruby-2.3.3.leopard_64.bottle.1.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
bogon:smart wuhao$ brew
==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
Already downloaded: /Users/Mahone/Library/Caches/Homebrew/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
Error: Checksum mismatch.
Expected: 34ce9e4c9c1be28db564d744165aa29291426f8a3d2ef806ba4f0b9175aedb2b
Actual: ffc9e98e9029e1d0dd538c70ce86aedde124a86fc2b8ba17b7f12bb9b43c2aaa
Archive: /Users/Mahone/Library/Caches/Homebrew/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
To retry an incomplete download, remove the file above.

我进入/Users/Mahone/Library/Caches/Homebrew删除掉该目录东西,重新执行了上面的命令,安装成功。

MAC下brew安装_第4张图片
图片.png
bogon:smart wuhao$ brew --version
Homebrew 1.3.4
Homebrew/homebrew-core (git revision fd0c24; last commit 2017-10-07)

安装thirft

MAC下brew安装_第5张图片
图片.png

你可能感兴趣的:(MAC下brew安装)