brew install libyaml ERROR

半城伤御伤魂 提交于 2019-12-18 05:51:35

问题


$ 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 how do I fix this problem? what should I do ?


回答1:


Start with brew doctor which will show you errors with your brew setup.

You might see something like this: "Warning: /usr/local/lib/pkgconfig isn't writable."

It will give you the advice that: "You should probably chown /usr/local/lib/pkgconfig".

This means: sudo chown {your-user-name} /usr/local/lib/pkgconfig

Then you will need to link the files with this: brew link libyaml

If this does not work hopefully the output of brew doctor will give you enough to continue the search.



来源:https://stackoverflow.com/questions/15449581/brew-install-libyaml-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!