Use brew install CMake today.
==> downloading https://homebrew.bintray.com/bottles/cmake-3.9.6.sierra.bottle.tar.gz
######################################################################## 100%
==> pouring cmake-3.9.6.sierra.bottle.tar.gz
Error: The ' Brew link ' step did not complete successfully
The formula built, but was not symlinked into/usr/local
Could not symlink SHARE/ACLOCAL/CMAKE.M4
/usr/local/share/aclocal is not writable.
You can try again using:
Brew Link CMake
==> Caveats
Emacs Lisp files has been installed to:
/usr/local/share/emacs/site-lisp/cmake
==> Summary
?? /usr/local/cellar/cmake/3.9.6:2,267 files, 31.7MB
Brew Install CMake
Warning: cmake 3.9.6 is already installed, it's just not linked.
You can use the ' Brew link cmake ' to link this version.
X-macbook-pro:primecount-master zilong$ Brew Link CMake
linking/usr/local/cellar/cmake/3.9.6 ...
Error: Could not symlink share/aclocal/cmake.m4
/usr/local/share/aclocal is not writable.
X-macbook-pro:primecount-master zilong$ Brew Link CMake
linking/usr/local/cellar/cmake/3.9.6 ...
Error: Could not symlink share/aclocal/cmake.m4
/usr/local/share/aclocal is not writable.
Oh, it's a privilege problem, so you can do it by empowering
sudo chown-r ' whoami ': admin/usr/local/share/aclocal
Knock it over again.
Brew Link CMake
MAC Installation CMake Small problem