使用homebrew安装软件时报权限错误,
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink lib/mylib
/usr/local/lib is not writable.
这主要是对/usr/local/lib/pkgconfig目录没有写权限。
可以对此目录授权给使用者:
sudo chown -R $(whoami) /usr/local/lib/
最后连接安装的软件包
brew link mylib