macos 升级后brew异常问题

1,105 阅读1分钟

macos 升级到12 之后,使用brew 安装包,报错,信息如下。 提示不再支持pre-release版本

Updating Homebrew...

Warning: You are using macOS 12.

We do not provide support for this pre-release version.

You will encounter build failures with some formulae.

Please create pull requests instead of asking for help on Homebrew's GitHub,

Twitter or any other official channels. You are responsible for resolving

any issues you experience while you are running this

pre-release version.



Error: The following directories are not writable by your user:

/usr/local/share/man/man3



You should change the ownership of these directories to your user.

  sudo chown -R $(whoami) /usr/local/share/man/man3



And make sure that your user has write permission.

  chmod u+w /usr/local/share/man/man3

处理方式

  1. 根据提示更新版本
cd /usr/local/Homebrew/
git pull
  1. 给用户权限
sudo chown -R $(whoami) /usr/local/share/man/man3

完成