权限被拒绝 - / Users / <user> / Library / Logs / Homebrew / flann使用brew时

时间:2016-05-16 13:10:11

标签: macos homebrew permission-denied

我想在OSX上通过brew安装pcl。

$ brew install pcl
==> Installing pcl from homebrew/science
==> Installing dependencies for homebrew/science/pcl: flann, cminpack, qh
==> Installing homebrew/science/pcl dependency: flann
==> Downloading http://people.cs.ubc.ca/~mariusm/uploads/FLANN/flann-1.8.4-src.z
Already downloaded: /Library/Caches/Homebrew/flann-1.8.4.zip
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG
Error: Permission denied - /Users/xxh/Library/Logs/Homebrew/flann

推荐cmake没问题。

我试过了sudo brew install pcl。这不行。

如何解决?

1 个答案:

答案 0 :(得分:0)

您是否尝试修复权利?

$ chmod -R 755 ~/Library/Logs/Homebrew

应该解决此问题,您可以重试安装...