MAC下 brew link qt 出现的一些问题

Posted O_Din

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MAC下 brew link qt 出现的一些问题相关的知识,希望对你有一定的参考价值。

1.安装Ghost.py出现问题:在安装pyside前提下安装

2.brew安装pyside

Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink lib/pkgconfig/QtCLucene.pc
/usr/local/lib/pkgconfig is not writable.

按照提示:

You can try again using:
  brew link qt

再次操作:

brew link qt
Linking /usr/local/Cellar/qt/4.8.7_2... 
Error: Could not symlink lib/pkgconfig/QtCLucene.pc
/usr/local/lib/pkgconfig is not writable.

出现以上错误,我们使用brew doctor查看问题详情,以及建议操作:

Warning: /usr/local/lib/pkgconfig isnt writable.

This can happen if you "sudo make install" software that isnt managed
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.

You should probably change the ownership and permissions of /usr/local/lib/pkgconfig
back to your user account.
  sudo chown -R $(whoami) /usr/local/lib/pkgconfig

 

以上是关于MAC下 brew link qt 出现的一些问题的主要内容,如果未能解决你的问题,请参考以下文章

brew-mac的包管理器brew link命令

DCMTK 库与 mac 中的 qt

mac下 brew 安装mongodb

深入理解brew link命令

Mac下用brew搭建LNMP和LAMP开发环境

Mac下更新brew及安装Prometheus+Grafana