brew install libyaml ERROR

2019-01-26 06:42发布

$ 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
                

1条回答
别忘想泡老子
2楼-- · 2019-01-26 07:29

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.

查看更多
登录 后发表回答