brew是个什么东东呢?其实就是linux系统下面的apt-get、yum神器。
安装brew只需要一条命令即可:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
这就成了,brew就用下面3条命令即可:
搜索软件:brew search 软件名,如brew search wget
安装软件:brew install 软件名,如brew install wget
卸载软件:brew remove 软件名,如brew remove wget
使用wget下载在cmake官网下载,发现速度太慢,根本下载不下来,于是使用如下命令:
bogon:wabase iwaimai$ brew search cmake
==> Searching local taps...
cmake
==> Searching taps on GitHub...
caskroom/cask/cmake
==> Searching blacklisted, migrated and deleted formulae...
bogon:wabase iwaimai$ brew install cmake
==> Downloading https://homebrew.bintray.com/bottles/cmake-3.10.2.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cmake-3.10.2.high_sierra.bottle.tar.gz
==> Caveats
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/cmake
==> Summary
? /usr/local/Cellar/cmake/3.10.2: 2,334 files, 32.4MB
这就算是安装好了cmake了