HOMEBREW_NO_INSTALL_FROM_API=1 brew install [email protected]
-
-
Save diegopacheco/1fe869505b7df9fa17c93b9f3cf62e4c to your computer and use it in GitHub Desktop.
@noxymon-mekari Thanks. For me I found that the formula was actually in
{HOMEBREW_DIR}/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/
Thanks for this gist. For noobs like me, here's a list of the required steps when doing this the very first time, I needed 3.8:
- Run
HOMEBREW_NO_INSTALL_FROM_API=1 brew install [email protected]
. This will fail with a "disabled" message. - cd to
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/p
- Edit file
[email protected]
, look for this line and comment it with a leading #:disable! date: "2024-10-14", because: :deprecated_upstream
- Again run
HOMEBREW_NO_INSTALL_FROM_API=1 brew install [email protected]
Brew should install 3.8.
@chrisinmtown any other suggestion? The script runs fine following your steps but there is no binary in /opt/homebrew/bin/
I have not tried this lately. For what it's worth, you should have a link (not a binary) in /opt/homebrew/bin/
. The clone might unpack to prefix "/opt" instead of "/usr/local"; for example /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/p/[email protected]
. Also did you check /opt/homebrew/Cellar
for a directory [email protected]
?
/opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/p/[email protected]
Yup, already handled that too and modified the correct file. Basically I am able to run the brew install [email protected] correctly and this time in the output there is no disabled errors/warnings either.
Also did you check /opt/homebrew/Cellar for a directory [email protected] ?
No folder for [email protected] there either.
you should have a link (not a binary) in /opt/homebrew/bin/
Yes I am aware, I meant that neither the link or any reference is there.
The only reference/folder exists post installation is /opt/homebrew/lib/python3.8/
which only has site-packages
folder.
go to
{HOMEBREW_DIR}/Homebrew/Library/Taps/homebrew/homebrew-core/homebrew/homebrew-core/Formula
find your formula name inside and comment a line with
disable!
now you can brew install as usual