brunophilipe / Cakebrew

Manage your Homebrew formulas with style using Cakebrew.
http://www.cakebrew.com
GNU General Public License v3.0
4.8k stars 253 forks source link

How to make cakebrew read ARM brew list? #231

Open Manlinup opened 3 years ago

Manlinup commented 3 years ago

ARM brew default set is /opt/homebrew/Celler;

Cakebrew default read /usr/local/Celler;

GhisF commented 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)"

ticky commented 3 years ago

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.

rexich commented 3 years ago

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!

artus70 commented 2 years ago

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?

artus70 commented 2 years ago

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
amanessinger commented 2 years ago

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 :)