-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Cannot install in Homebrew on Intel processor in ARM default prefix (/opt/homebrew)! #9130
Comments
Hi, Christian. I've referred your question to the Technical Steering Committee (TSC) of Homebrew. They may take some time to deliberate before replying. In short term, it's strongly recommended to install Homebrew on macOS on Intel in
The precompiled binary bottles are compiled for this prefix, and using that makes it unnecessary to build anything from source. Building from source is not supported. |
Hi Shaun (@sjackman), Thank you for the quick reply, and for passing on my suggestion to the TSC. I know about the Coming back to my question, the error message doesn't indicate that an install from source code was problematic. It suggests that the brew install/upgrade script checks the target directory and then refuses to go ahead with the installation. I didn't dispute the choice of the homebrew maintainers implementing this behaviour; I merely asked if relocating/reinstalling homebrew into a subdirectory of Thanks again for your help, Christian. |
Ahh, I finally found it - here. So no way to bypass it, but every prefix other than the default one for ARM will do. That answers my question. |
Yup, this is the intended behaviour. Sorry to mess with your current workflow but this should be a one-time change that will avoid pain in future. |
|
Thank you for the confirmation and also for the pointer to brew bundle - that helps a lot indeed! |
...as /opt/homebrew is now reserved for the installation on Apples running on ARMs... see Homebrew/brew#9130.
See #9177 |
Hello, I belong to the group of users that already chose
But I really appreciated this little door ("at my peril") being open on my Intel-based system to customize the brew prefix.
OK, Really, making this |
Just checking in to say that I'm in the same boat as @cmarquardt and @Yann-R: I've been using |
For ARM this should by nicer :
|
I edited |
I know this issue has been closed, but I still wanted to add a +1. Not wanting to mix homebrew's installation tree with that of every other random package that also wants to install into /usr/local, I put it in /opt/homebrew instead. It felt like the right choice at the time and has worked perfectly for the 5+ years that I have been using homebrew on numerous macOS systems. I'm glad to see that the brew maintainers have started to see things the same way, but I am less happy with the heavy handed way /opt/homebrew suddenly got usurped for ARM binaries only -- even on x86 systems that will never have any ARM binaries on them. Why is that necessary? Can't there at least be a user selectable option for this? I get it that I'm on "my own" if I don't use the standard locations and have to build everything from source and I'm used to that. That doesn't bother me at all. What bothers me is suddenly being thrown an error message when I try to upgrade homebrew with no configurable recourse around it. That's very unfortunate and is bound to cause a lot of unnecessary pain for a lot of people out there. I think /opt/homebrew is a fine default choice for ARM moving forward, but I would strongly urge you to provide a way to override the system default setting for |
Because we're going to imminently start shipping ARM binaries and need to build them in a different location to
No, sorry.
I agree it is unfortunate, I do not consider it unnecessary. |
Bug report
brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew config
andbrew doctor
and included their output with your issue?What you were trying to do (and why)
Since a long time, I happily use homebrew on a non-default path -
/opt/homebrew
. Since the last update of homebrew, trying to upgrade or install packages, e.g. withresults in the following error:
and no installation takes place, unfortunately.
I understand you are working on ways to support the new ARM chips with Homebrew; I assume changes related to that cause this error message. I further assume that reinstalling in a different place will avoid this error - is this correct? I would still like to avoid a complete reinstall - is there a way to disable this check, e.g. with a command-line argument to brew?
To be honest, I would also suggest that installation directories for different hardware architectures carry the hardware in their path, e.g. like in
which would allow installing homebrew instances for different hardware architectures side-by-side. By the way, would brew accept a prefix like the proposed, or still throw an error?
Thank you.
Christian.
Output of
brew config
andbrew doctor
commandsThe text was updated successfully, but these errors were encountered: