Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Having issues Installing postgresql with homebrew

Basically i did

brew install postgresql

and this is the error i get,

==> Downloading   http://ftp9.us.postgresql.org/pub/mirrors/postgresql/source/v9.1.1/postgresql-9.1.1.tar.bz2

curl: (22) The requested URL returned error: 403
Error: Download failed: http://ftp9.us.postgresql.org/pub/mirrors/postgresql/source/v9.1.1/postgresql-9.1.1.tar.bz2

I thought installing postgresql using brew is easy, anyone facing the same problem ?

like image 789
John Lee Avatar asked Dec 05 '22 19:12

John Lee


2 Answers

It appears the URL has changed but the formula hasn't been updated yet.

The formula has now been updated. Instead of manually fixing the recipe as the rest of this answer suggests, just update your homebrew recipes via brew update and try the install again.

You can edit the formula yourself with the brew edit postgresql command. Change the url to http://ftp.postgresql.org/pub/source/v9.1.1/postgresql-9.1.1.tar.bz2 and try to install again.

like image 101
James Allman Avatar answered Dec 07 '22 09:12

James Allman


MD5 for http://ftp.postgresql.org/pub/source/v9.1.1/postgresql-9.1.1.tar.bz2 is 061a9f17323117c9358ed60f33ecff78

like image 33
mikepence Avatar answered Dec 07 '22 07:12

mikepence