Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Homebrew error installing tomcat

Tags:

homebrew

After installing tomcat on Os x El Capitan using Homebrew I have received the following Warning:

your HOMEBREW_PREFIX is set to /usr/local but HOMEBREW_CELLAR is set to /usr/local/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."

The command brew services list shows no services installed. Printenv doesn't show any homebrew variable It's not clear to me what should I do.

like image 295
Umby Avatar asked Oct 20 '25 14:10

Umby


2 Answers

enter link description here

I also encountered this problem, in the end of the page to get accurate help,

brew bundle dump

rm -rf /usr/local/Homebrew/Cellar

brew bundle
like image 84
ph6o1fr7 Avatar answered Oct 23 '25 06:10

ph6o1fr7


I have received a similar warning when I tried to do a brew update. It did not allow me to update. All I have done to resolve it was do a brew update in going to the /usr/local/Cellar directory. From what I understand HOMEBREW_REPOSITORY path was modified or went missing when the OS was updated. After the brew update, the message said Migrated HOMEBREW_REPOSITORY to /usr/local/Homebrew! Homebrew no longer needs to have ownership of /usr/local. If you wish you can return /usr/local to its default ownership with: sudo chown root:wheel /usr/local

This got me back to my normal brew usage with out a problem.

like image 37
spatibandla Avatar answered Oct 23 '25 06:10

spatibandla



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!