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: