Open Manlinup opened 3 years ago
I had the same problem, the solution is solved in the issue #227 . Perhaps it should be mentioned somewhere in the Readme.
I added the following sentence to ~/.zprofile, and Cakebrew now works correctly. If the following sentence is not in ~/.zprofile, Cakebrew does not seem to be able to find the brew command. Cakebrew does not work correctly if the following sentence is present in ~/.zshrc.
eval "$(/opt/homebrew/bin/brew shellenv)"
It'd be really nice to allow in-app selection of the brew installation, as I have both an Intel and an ARM installation I need for development purposes.
eval "$(/opt/homebrew/bin/brew shellenv)"
Adding this line to my ~/.bash_profile
and logging out and back in resolved the issue for me (MacBook Air M1). Thank you!
I can't get Cakebrew to work on my Mac mini M1 running macOS 12.2.1. I have saved the above mentioned line in .zprofile and .bash_profile and also .tcshrc, yet Cakebrew still does not find the Brew installation which resides in /opt/homebrew. What can I do?
I can't get Cakebrew to work on my Mac mini M1 running macOS 12.2.1. I have saved the above mentioned line in .zprofile and .bash_profile and also .tcshrc, yet Cakebrew still does not find the Brew installation which resides in /opt/homebrew. What can I do?
I solved it by adding this to ~/.bashrc
:
PATH = /opt/homebrew/sbin:$PATH
PATH = /opt/homebrew/bin:$PATH
export PATH
On my M1, it works if I open the app from the commandline using "open /Applications/Cakebrew.app". It does not find homebrew when started from Applications.
I think, after checking of PATH, an architecture-dependent fallback would be appropriate. Would cover 99.9% of all installations :)
ARM brew default set is /opt/homebrew/Celler;
Cakebrew default read /usr/local/Celler;