I ran brew install postgresql:
- Then
brew services start postgresql
Received
Error: Permission denied @ apply2files - /Users/$USER/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
- Ran
chmod 755 ~/Library/LaunchAgentsandcp /usr/local/opt/postgresql/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/(from https://coreyward.svbtle.com/fixing-homebrew-postgres-installation-on-macos-catalina)
This gave me Error: Permission denied @ rb_sysopen - /Users/$USER/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
- I tried various things from this thread https://gist.github.com/irazasyed/7732946 but with no success.
I'm not too familiar with Homebrew and am wondering how to resolve this. Thanks!