When I used the Homebrew to install RabbitMQ,get the errors ❌:
The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink .
/usr/local/opt is not writable.
You can try again using:
brew link jpeg
but when do this, the error :
brew link jpeg
Linking /usr/local/Cellar/jpeg/9b...
Error: Could not symlink .
/usr/local/opt is not writable.
so, do as this, like the pic:
$ sudo chown -R `whoami`:admin /usr/local/opt
you may need to do:
$ sudo chown -R `whoami`:admin /usr/local/share
You may receive the following error
so, do this:
$ echo 'export PATH="/usr/local/opt/erlang@19/bin:$PATH"' >> ~/.bash_profile
$ brew link erlang@19 --force
You can install rabbitmq without error,
$ brew install rabbitmq
run the $ brew doctor, can get this info:

本文介绍了解决使用Homebrew安装RabbitMQ过程中遇到的权限和链接错误的方法。通过调整目录所有者和环境变量设置,成功解决了安装过程中出现的问题。

1168

被折叠的 条评论
为什么被折叠?



