Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

xflashx

macrumors regular
Original poster
Aug 12, 2016
183
635
As macOS 12 is in beta, Homebrew throws the following error when trying to install an application using a pre-compiled bottle:

Code:
Warning: You are using macOS 12.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
pre-release version.

Error: syncthing: no bottle available!
You can try to install from source with:
  brew install --build-from-source syncthing
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.

I did find a potential solution here where you simply override the reported macOS version. However, after editing the file brew.sh and rebooting, the changes are reverted and the Homebrew error persists.

Anyone here with more knowledge that could help? I do not care if things break as I know that I am using beta software. But not having to build most of the apps sure is nice.
 

roderik

macrumors newbie
Feb 26, 2011
26
8
Belgium
As macOS 12 is in beta, Homebrew throws the following error when trying to install an application using a pre-compiled bottle:

Code:
Warning: You are using macOS 12.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
pre-release version.

Error: syncthing: no bottle available!
You can try to install from source with:
  brew install --build-from-source syncthing
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.

I did find a potential solution here where you simply override the reported macOS version. However, after editing the file brew.sh and rebooting, the changes are reverted and the Homebrew error persists.

Anyone here with more knowledge that could help? I do not care if things break as I know that I am using beta software. But not having to build most of the apps sure is nice.
Rebooting is not needed, but i think brew commands update from git and it will reset the modification.

sw_vers gets its info from /System/Library/CoreServices/SystemVersion.plist which you can modify, maybe you can persist it this way? https://stackoverflow.com/questions...use-this-application-with-this-mac-os-version
 

JRH147

macrumors newbie
Jul 13, 2008
3
0
Were you able to figure out a solution for this? I've tried everything--even tried to install one by one by source and eventually gave up after about the 3rd or 4th hour...so used to just typing `brew install php` and moving on with my life!
 

Nightmare001

macrumors newbie
Jun 8, 2021
1
0
As macOS 12 is in beta, Homebrew throws the following error when trying to install an application using a pre-compiled bottle:

Code:
Warning: You are using macOS 12.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
pre-release version.

Error: syncthing: no bottle available!
You can try to install from source with:
  brew install --build-from-source syncthing
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.

I did find a potential solution here where you simply override the reported macOS version. However, after editing the file brew.sh and rebooting, the changes are reverted and the Homebrew error persists.

Anyone here with more knowledge that could help? I do not care if things break as I know that I am using beta software. But not having to build most of the apps sure is nice.
I have tried this method. However the changes are reverted immediately after I run "brew install <formula>". So I change the permissions.



Recommended steps

1. Run "brew update"
2. Change permission and the file
3. Install anything you want
4. Revert it
If you do not revert it, "brew update" command may get some problems.



Steps of changing permissions

For Intel Macs use "sudo chown root /usr/local/homebrew/Library/Homebrew/brew.sh" and
"sudo chown root /usr/local/homebrew/Library/Homebrew"

For Apple Silicon Macs, use "sudo chown root /opt/homebrew/Library/Homebrew/brew.sh" and
"sudo chown root /opt/homebrew/Library/Homebrew"

Finally, edit /usr/loacl/homebrew/Library/Homebrew/brew.sh
/opt/homebrew/Library/Homebrew/brew.sh

Change HOMEBREW_MACOS_VERSION="$(/usr/bin/sw_vers -productVersion)" to
HOMEBREW_MACOS_VERSION="11.4"
DO NOT FORGET TO USE SUDO

Then it works.



Steps of reverting

For Intel Macs use "sudo chown $(whoami) /usr/local/homebrew/Library/Homebrew/brew.sh" and
"sudo chown $(whoami) /usr/local/homebrew/Library/Homebrew"

For Apple Silicon Macs, use "sudo chown $(whoami) /opt/homebrew/Library/Homebrew/brew.sh" and
"sudo chown $(whoami) /opt/homebrew/Library/Homebrew"

No need to edit brew.sh again, because homebrew will revert it immediately.
 

xflashx

macrumors regular
Original poster
Aug 12, 2016
183
635
Not yet, thought I just wait until there is a more elegant solution than editing the SystemVersion.plist file.
I don't think that this was a problem before Monterey. I install betas since 2010 and use Homebrew for the last 5 years and do not remember that there was such an error. A warning - yes - but not an abortion of the installation using a bottle.

Or I am just getting older and start to forget things 😅
 

5425642

Cancelled
Jan 19, 2019
983
554
I can’t install the newest version of git ironic as a old one is already installed.
Also I can’t install openssl but powershell that I can install :)
 

dumiku

macrumors regular
Aug 13, 2017
205
101
Accra (Ghana)
I install macOS 12 on a separate drive and git has be working for me without any issues, clean install of brew and all packages.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.