Can't link pcre thru brew in max os yosemite

心已入冬 提交于 2019-12-03 09:48:06

问题


When I install watchman using brew install watchman, it got this Error: You must brew link pcre before watchman can be installed. So I try brew link pcre and brew link --overwrite pcre, I just got linking /usr/local/Cellar/pcre/8.36... Error: Could not symlink share/man/man3/pcre.3 /usr/local/share/man/man3 is not writable.

Can anyone help?


回答1:


By design Homebrew (brew) requires the contents of /usr/local to be owned by you. You can fix it easily by running:

sudo chown -R `whoami` /usr/local

from your Terminal.

See here for further explanation.




回答2:


first

sudo chown -R 'your name' /usr/local

then

brew link pcre -f

then

brew install watchman

it should work



来源:https://stackoverflow.com/questions/29319378/cant-link-pcre-thru-brew-in-max-os-yosemite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!