的Protobuf在Mac上安装失败,“无法用符号链接”
问题描述:
试图通过在Mac上安装的protobuf:的Protobuf在Mac上安装失败,“无法用符号链接”
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/google
/usr/local/include is not writable.
建议:在
brew install protobuf
结果
You can try again using:
brew link protobuf
结果:
Error: Could not symlink include/google
/usr/local/include is not writable.
尝试:
brew update
brew uninstall protobuf... brew install protobuf
sudo brew... of course won't work (cowards...)
任何想法?
答
貌似这个解决它:
sudo chown -R `whoami` /usr/local
然后:
brew link --overwrite protobuf
从这里摘自:
http://developpeers.com/blogs/fix-for-homebrew-permission-denied-issues