Brew install Qt在macOS Sierra上不起作用 [英] Brew install qt does not work on macOS Sierra

查看:246
本文介绍了Brew install Qt在macOS Sierra上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Mac升级到了Sierra,但无法安装qt.我写了"brew install qt",并收到以下消息.你有什么建议吗?

I upgraded my mac to Sierra and I can't install qt. I wrote "brew install qt" and I received the message below. Do you have any recommendations?

"此公式无法在macOS上编译或正常运行 由于上游不兼容,因此版本比El Capitan更新. 错误:无法满足的要求导致此构建失败."

"This formula either does not compile or function as expected on macOS versions newer than El Capitan due to an upstream incompatibility. Error: An unsatisfied requirement failed this build."

推荐答案

今天晚上,我能够在全新安装的Sierra上成功解决此问题.

I was able to sucessfully work around this on a fresh install of Sierra this evening.

qt.rb看起来可以在MacOS Sierra上正常运行,您只需要删除最大操作系统要求"条目即可运行它.

It looks like qt.rb will execute just fine on MacOS Sierra, you just need to remove the Maximum OS requirement entry to allow it to run.

这是我的机器上需要的.

This is what was required on my machine.

/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/qt.rb

注释第36行,如下所示

Comment out line 36 as follows

#depends_on MaximumMacOSRequirement => :el_capitan

我很好奇这是否对其他人有用.

I am curious if this works for others.

谢谢

这篇关于Brew install Qt在macOS Sierra上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆