Error: qt#5.5: unknown version :mountain_lion - homebrew

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
Versions:
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 version 10.13.6 High Sierra
any help?

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
Solution
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

Related

New MacBook Homebrew Install Issue

I have a Macbook Pro that has an M1 Chip that is causing issues trying to install Homebrew. I have followed the steps in this article: https://mac.install.guide/homebrew/3.html but when I get to the Homebrew install and I type brew in the terminal I get this
Example usage:
brew search TEXT|/REGEX/
brew info [FORMULA|CASK...]
brew install FORMULA|CASK...
brew update
brew upgrade [FORMULA|CASK...]
brew uninstall FORMULA|CASK...
brew list [FORMULA|CASK...]
Troubleshooting:
brew config
brew doctor
brew install --verbose --debug FORMULA|CASK
Contributing:
brew create URL [--no-fetch]
brew edit [FORMULA|CASK...]
Further help:
brew commands
brew help [COMMAND]
man brew
https://docs.brew.sh
Shouldn't it tell me what version of Homebrew I have and that it's installed?
I am trying to set up my Homebrew so that I can use it with git. I am trying to do brew install git and brew install git-lfs but I get the below error messages when I try to do that.
fatal: Could not resolve HEAD to a revision
Warning: No available formula with the name "git".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
Shouldn't it tell me what version of Homebrew I have and that it's installed?
To find the installed version, use the -v option.
% brew -v
Homebrew 3.6.0
Homebrew/homebrew-core (git revision e5722d08e47; last commit 2022-09-09)
Homebrew/homebrew-cask (git revision 0dc06a0f09; last commit 2022-09-09)
fatal: Could not resolve HEAD to a revision
You will need to reinstall, and make sure it uses /opt/homebrew because you are on an M1.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
There shouldn't be any errors displayed when this runs.

Trying to install aws-sam-cli through brew on ubuntu using "brew tap aws/tap" command ,getting error "fatal: Could not resolve HEAD to a revision"

just installed homebrew , brew --version gives below output
Homebrew 2.7.7
Homebrew/linuxbrew-core (no Git repository)
i have git version 2.27.0 installed , now im trying to run "brew tap aws/tap" command but getting the error "fatal: Could not resolve HEAD to a revision".
im using ubuntu version 20.04
git -C $(brew --repo homebrew/core) checkout master - this worked for me
Reference this issue - Installing upx with Mac Big Sur

Error: gobject-introspection: uninitialized constant Language::Python::Shebang

While executing the following command:
brew install opencv
I am encountered with the following exception:
Error: gobject-introspection: uninitialized constant Language::Python::Shebang
Could you please help me find the root cause for this and resolve it?
Language::Python::Shebang is the replacement for Language::Python.rewrite_python_shebang, which was deprecated in Homebrew 2.3.0
So you are likely using a version of Homebrew prior to 2.3.0 You can check your Homebrew version with brew --version.
Just doing brew update should update Homebrew to the latest version.
If you at some point added or changed a formula and worked locally on it you could be on a feature branch or your Homebrew working directory is changed so it does not update the master branch.
In these cases try the following:
cd /usr/local/Homebrew
git status
Discard or git stash your changes or git checkout master if you are on a feature branch
Once the working directory is clean you can brew update to update Homebrew

what exactly does the command brew -v do and how can i undo it?

I am new to using homebrew, and in my naivety i tried the command brew -v to see if that would give me the version of homebrew i have installed, but instead i got this output:
==> Downloading https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.3.7.leopard_64.bottle.tar.gz
######################################################################## 100.0%
==> Pouring portable-ruby-2.3.7.leopard_64.bottle.tar.gz
Homebrew 1.7.3-17-g817b72d
Homebrew/homebrew-core (git revision 6b80; last commit 2017-12-22)
i am not sure what that just did and where to find it in my system, or how to undo/uninstall whatever i just installed.
Any help would be appreciated
Im on a mac running High Sierra
If I type brew -v, I obtain:
Homebrew 1.7.3-2-g654ad46
Homebrew/homebrew-core (git revision 8a091; last commit 2018-09-03)
In your case, it first install portable-ruby because you never run this command before and homebrew needs this package to run.
This is just a normal behavior.

brew upgrade <package> does not update to the latest version

I've noticed this happening a few times but this most recent instance is with wp-cli Running brew upgrade wp-cli does not download the latest version.
$ brew upgrade wp-cli
Error: homebrew/php/wp-cli 0.20.1 already installed
$ brew info wp-cli
homebrew/php/wp-cli: stable 0.20.1, HEAD
A set of command-line tools for managing WordPress installations.
http://wp-cli.org/
/usr/local/Cellar/wp-cli/0.20.1 (2635 files, 15M) *
Built from source
From: https://github.com/Homebrew/homebrew-php/blob/master/Formula/wp-cli.rb
Note the version is 0.20.1. When I check the formula repo, I see,
head "https://github.com/wp-cli/wp-cli.git"
When I check that repo, I see that the version in the master branch is 0.24.0. brew info and wp --version both return 0.20.1. Why isnt Homebrew grabbing the latest version? How do I force it to get the latest?
You'll need to run brew update first to force brew to update its list of formulae.

Resources