Mac - brew 安装缺少访问文件权限

例如:

  brew install cmake

Error: The following directories are not writable by your user:
/usr/local/share/man/man8

You should change the ownership of these directories to your user.
  sudo chown -R $(whoami) /usr/local/share/man/man8

 

终端执行:

  sudo chown -R `whoami`:admin /usr/local/bin

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

 

解决!

 

posted @ 2018-11-14 15:20  杨天成  阅读(8509)  评论(0编辑  收藏  举报