2013-03-16 123 views
9
$ 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 我该如何解决这个问题? 我该怎么办?brew安装libyaml错误

回答

30

brew doctor开始,它会向您显示brew设置的错误。

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

它会给你的建议:“你应该可以chown/usr/local/lib/pkgconfig”。

这意味着:sudo chown {your-user-name} /usr/local/lib/pkgconfig

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

如果这不起作用希望的brew doctor输出会给你足够的继续搜索。