安装 Homebrew 错误 tomcat

Homebrew error installing tomcat

使用 Homebrew 在 Os x El Capitan 上安装 tomcat 后,我收到以下警告:

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."

command brew services list 显示没有安装任何服务。 Printenv 不显示任何自制软件变量 我不清楚我该怎么做。

我在尝试执行 brew update 时收到了类似的警告。 它不允许我更新。我所做的就是在转到 /usr/local/Cellar 目录时执行 brew update 来解决它。 据我了解,HOMEBREW_REPOSITORY 路径在更新 OS 时被修改或丢失。 brew更新后,消息说 已将 HOMEBREW_REPOSITORY 迁移到 /usr/local/Homebrew! Homebrew 不再需要拥有 /usr/local 的所有权。如果你愿意,你可以 return /usr/local 到其默认所有权: sudo chown root:wheel /usr/local

这让我恢复了正常的 brew 使用,没有任何问题。

enter link description here

我也遇到了这个问题,在页面的最后得到了准确的帮助,

brew bundle dump

rm -rf /usr/local/Homebrew/Cellar

brew bundle