Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error installing postgresql through homebrew

I was able to install homebrew with no issues, but when I try to install postgresql I get the below error messages:

➜  ~ brew install postgresql
Warning: No available formula with the name "postgresql".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

screen shot of error messages

Any idea how to fix this?

like image 425
theslackervegan Avatar asked Oct 19 '25 11:10

theslackervegan


2 Answers

git -C $(brew --repo homebrew/core) checkout master

this will switch to master, then run

brew doctor

this should run without any error.

If there is no error you can install anything with brew install.

ex:

brew install postgresql

like image 80
shahed Avatar answered Oct 21 '25 02:10

shahed


I had the same problem, and I fixed by running brew tap homebrew/core

After that, postgresql was available to install using:

brew install postgresql

like image 41
José Coelho Avatar answered Oct 21 '25 02:10

José Coelho



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!