I cannot install postgresql with homebrew.
$ brew install postgresql
Error: Could not create /usr/local/Cellar
Check you have permission to write to /usr/local
I am not sure if homebrew was installed well. If you need more information, I will update this.
If you encounter an error about being unable to create the postgres service user, turn off any antivirus programs and re-run the installer. >\database directory and manually set the permissions for the \data subdirectory. If the subdirectory \data does not exist, create. Then uninstall PostgreSQL and re-install.
PostgreSQL can also be installed on macOS using Homebrew.
I created /usr/local/Cellar by myself, then could install successfully.
I find that if I get this problem with brew I just fix the permissions on the /use/local
folder:
sudo chown -R $(whoami):admin /usr/local
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With