Homebrew无法链接libmpc

时间:2013-05-01 01:50:44

标签: homebrew

brew install libmpc 我收到了一个错误

Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link libmpc'

然后我跑

brew doctor

我得到了

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these: `libmpc`

所以我跑

brew link libmpc

我得到了

Error: Could not symlink file: /usr/local/Cellar/libmpc/1.0.1/lib/libmpc.dylib
/usr/local/lib/libmpc.dylib may already exist.
/usr/local/lib may not be writable.

我该怎么办?

1 个答案:

答案 0 :(得分:0)

尝试清理旧的自制文件:

brew cleanup