错误:qt@5.5:未知版本:mountain_lion [英] Error: qt@5.5: unknown version :mountain_lion

查看:158
本文介绍了错误:qt@5.5:未知版本:mountain_lion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

遵循此

Followed this tutorial in installing qt5.5 on a macOS version 10.13.6 High Sierra. Failed when trying to brew install qt@5.5 giving me an error below:

Error: qt@5.5: unknown version :mountain_lion

版本:

  • 酿造
    自制软件2.0.0
    Homebrew/homebrew-core(git版本175af;最后一次提交2019-02-02)
    Homebrew/homebrew-cask(git版本05a81;最后提交2019-02-02)

  • brew
    Homebrew 2.0.0
    Homebrew/homebrew-core (git revision 175af; last commit 2019-02-02)
    Homebrew/homebrew-cask (git revision 05a81; last commit 2019-02-02)

macOS版本10.13.6 High Sierra

macOS version 10.13.6 High Sierra

有什么帮助吗?

推荐答案

引用

Referring to the tutorial, the following steps are executed to install qt@5.5

brew update
cd $( brew --prefix )/Homebrew/Library/Taps/homebrew/homebrew-core

# below is the last commit containing qt@5.5 with homebrew
git checkout 9ba3d6ef8891e5c15dbdc9333f857b13711d4e97 Formula/qt@5.5.rb

# here is where the error occurs
brew install qt@5.5

解决方案

找出在命令中检出的qt@5.5.rb公式文件的第25行(如

turns out line 25 of qt@5.5.rb formula file checked out in the command ( as seen in the referred tutorial)

git checkout 9ba3d6ef8891e5c15dbdc9333f857b13711d4e97 Formula/qt@5.5.rb

导致此问题.评论出来解决了这个问题

is causing this problem. commenting it out fixes the issue

这篇关于错误:qt@5.5:未知版本:mountain_lion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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