码迷,mamicode.com
首页 > 系统相关 > 详细

Mac 安装cmake小问题

时间:2017-11-21 19:51:20      阅读:296      评论:0      收藏:0      [点我收藏+]

标签:har   bottle   back   res   read   oca   .gz   ace   apple   

今天用 brew install cmake。

 

==> Downloading https://homebrew.bintray.com/bottles/cmake-3.9.6.sierra.bottle.tar.gz

######################################################################## 100.0%

==> Pouring cmake-3.9.6.sierra.bottle.tar.gz

Error: The `brew link` step did not complete successfully

The formula built, but is 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 have 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 `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.

 

哦,原来是权限问题,那么通过赋权即可

 

sudo chown -R `whoami`:admin /usr/local/share/aclocal

再敲一遍即可

brew link cmake

 

 

 

 

Mac 安装cmake小问题

标签:har   bottle   back   res   read   oca   .gz   ace   apple   

原文地址:http://www.cnblogs.com/hero4china/p/brew-install-cmake.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!