11
$ brew install libyaml
==> Downloading http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/libyaml-0.1.4.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libyaml/0.1.4
==> make install
Warning: Could not link libyaml. Unlinking...
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 libyaml'
==> Summary
  /usr/local/Cellar/libyaml/0.1.4: 7 files, 336K, built in 9 seconds

OS X 10.8.2 如何解决这个问题?我应该怎么办 ?

4

1 回答 1

32

Start with brew doctorwhich 将向您显示 brew 设置的错误。

您可能会看到如下内容:“警告:/usr/local/lib/pkgconfig 不可写。”

它会给您以下建议:“您可能应该 chown /usr/local/lib/pkgconfig”。

这表示: sudo chown {your-user-name} /usr/local/lib/pkgconfig

然后,您需要将文件与此链接:brew link libyaml

如果这不起作用,希望输出brew doctor将为您提供足够的继续搜索。

于 2013-03-26T02:25:16.040 回答