M1 Mac has reverted HOMEBREW_PREFIX to /usr/local #664
Replies: 8 comments 32 replies
-
Are you running this in rosetta or not?
That might mess with brews capabilities to detect the correct install. @Homebrew/brew might know more about this.
You're always welcome to maintain your own package manager that installs where you want packages to be. |
Beta Was this translation helpful? Give feedback.
-
You could consider symlinking everything except |
Beta Was this translation helpful? Give feedback.
-
I am getting below error in m1 mac. Any workarounds?
If I try to install openssl
|
Beta Was this translation helpful? Give feedback.
-
I added a symlink from I removed the symlink and some other old stuff from |
Beta Was this translation helpful? Give feedback.
-
any helpt to fix this error? I have no clue "Warning: your HOMEBREW_PREFIX is set to /usr/local but HOMEBREW_CELLAR is set |
Beta Was this translation helpful? Give feedback.
-
I found this issue comes up if you create a symlink for brew in /usr/local/bin that points to /opt/homebrew/bin/brew if you remove that symlink everything seems to go back to normal. |
Beta Was this translation helpful? Give feedback.
-
In my case homebrew set I placed Many thanks to the devs, maintainers and contributors for the life saving package manager and extra time spent trouble shooting!! 🙏 |
Beta Was this translation helpful? Give feedback.
-
I guess you must do this!
I fund old path: brew -> /usr/local/bin/brew -> /usr/local/Homebrew/bin/brew How to fix ? you can do:
You win! |
Beta Was this translation helpful? Give feedback.
-
I completely removed home-brew from my M1 Mac after migration nd reinstalled it in the new default location /opt/homebrew.
Today, Brew is showing me that HOMEBREW_PREFIX is set to /usr/local and nothing is working.
I did not change HOMEBREW_PREFIX because I have been unable to find out how to change it. The only thing that has changed is that I had to install the new Xcode command-line tools with the most recent 14.2 build. I do have links to the home-brew executables in /opt/homebrew/bin replicated in /usr/local/bin so that scripts continue to load the right binaries.
brew doctor also says my Xcode does not support macOS 11. I do not have Xcode installed on this machine, only the command-line tools and they are the current build for 11.2
While I am here, the switch to /opt/homebrew is a big bag of hurt.
$ brew config
zsh: correct 'config' to '.config' [nyae]? n
Warning: your HOMEBREW_PREFIX is set to /usr/local but HOMEBREW_CELLAR is set
to /opt/homebrew/Cellar. Your current HOMEBREW_CELLAR location will stop
you being able to use all the binary packages (bottles) Homebrew provides. We
recommend you move your HOMEBREW_CELLAR to /usr/local/Cellar which will get you
access to all bottles."
HOMEBREW_VERSION: >=2.5.0 (shallow or no git repository)
ORIGIN: (none)
HEAD: (none)
Last commit: never
Core tap ORIGIN: (none)
Core tap HEAD: (none)
Core tap last commit: never
Core tap branch: (none)
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 12.0 build 1200
Git: N/A
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.2-arm64
CLT: 12.4.0.0.1.1610135815
Xcode: N/A
XQuartz: 2.7.11 => /opt/X11
Rosetta 2: false
Beta Was this translation helpful? Give feedback.
All reactions