Mac上的Protobuf安装失败,因为'无法符号链接'

时间:2014-10-27 12:20:04

标签: macos homebrew protobuf-net

尝试通过以下方式在mac上安装protobuf:

brew install protobuf

结果:

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.

建议:

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...)

有什么想法吗?

1 个答案:

答案 0 :(得分:8)

看起来这样解决了它:

sudo chown -R `whoami` /usr/local

然后:

brew link --overwrite protobuf

从这里采取:

http://developpeers.com/blogs/fix-for-homebrew-permission-denied-issues