MacOS – Unable to run Postgres after Installation on OSX – El Capitan
homebrewmacmacospostgresql
I just used homebrew to install my postgres, and I am unable to start it after attempting to start it with the suggested command from postgres/brew.
Can someone please advise?
Best Answer
First, I would advise running brew doctor to make sure your homebrew installation is still intact. It will instruct you on changes that need to be made after your upgrade.
If you are still having trouble and have database backups or nothing critical that you believe could get broken, I believe an easy fix would be to run something like
brew uninstall postgres && brew install postgres
By default, homebrew recognizes your OS version, and will reinstall from a "bottle" specifically-intended for El Capitan, which should fix your particular issue.
You could also try brew upgrade postgres (or whatever the equivalent command is).
Yes, it is perfectly normal for homebrew to prompt you to install Xcode. That happened to me right after I installed Mavericks.
As for your question about git, it depends a lot on your usage. Default git (and almost every other tools) are not of the latest version. If you're OK with that, then of course you can just use the default one.
Short term answer, try this command to see if your brew installation worked:
/usr/local/bin/brew doctor
It seems that your bash environment may not be looking in the /usr/local/bin for executibles (which means you have to write the full path rather than just the name of the command). The solution may be just resourcing your conf files, which can be roughly done by closing your terminal and opening a new one. Otherwise, you'll want to add a line to your ~/.bash_profile. I think resourcing will do the trick though.
So after confirming the success with the first doctor, try quitting your terminal application and starting fresh, then your original usage of brew should work. If it doesn't try:
Best Answer
First, I would advise running
brew doctor
to make sure yourhomebrew
installation is still intact. It will instruct you on changes that need to be made after your upgrade.If you are still having trouble and have database backups or nothing critical that you believe could get broken, I believe an easy fix would be to run something like
By default,
homebrew
recognizes your OS version, and will reinstall from a "bottle" specifically-intended for El Capitan, which should fix your particular issue.You could also try
brew upgrade postgres
(or whatever the equivalent command is).