[CalendarServer-users] Not able to install PostGres on EC2 instance

Andre LaBranche dre at apple.com
Thu Jan 22 10:31:17 PST 2015


Hi,

It looks like 5.2.2’s support/build.sh refers to ftp5.us.postgresql.org, which indeed does not resolve in DNS.

You have a couple options:

1) Take the archive of postgres from your mac and copy it to the other machine, stored along side the other dependencies downloaded by the run script.
2) Edit support/build.sh (line 697) to update the url used to download Postgres.


In 5.2.2, we have:

c_dependency -m "52df0a9e288f02d7e6e0af89ed4dcfc6" \
      "PostgreSQL" "${pg}" \
      "ftp://ftp5.us.postgresql.org/pub/PostgreSQL/source/v${pgv}/${pg}.tar.gz" \
      --with-python ${enable_dtrace};

In trunk, we have:

    c_dependency -m "c003d871f712d4d3895956b028a96e74" \
      "PostgreSQL" "${p}" \
      "http://ftp.postgresql.org/pub/source/v${v}/${p}.tar.bz2" \
      --with-python ${enable_dtrace};

(note: do not replace the entire call to the c_dependency function with the one in trunk, just edit the URL)

-dre

> On Jan 21, 2015, at 5:14 PM, Gaurav Jain <monkeyfdude at gmail.com> wrote:
> 
> * I have a 64-bit Ubuntu-14.x instance.
> 
> * I use CalendarServer-5.2.2.
> 
> Once I checkout and I run:
> 
> ./run -s
> 
> 
> But I keep getting:
> 
> PostgreSQL is not available from calendarserver.org; trying upstream source.
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
>                                  Dload  Upload   Total   Spent    Left  Speed
>   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: ftp5.us.postgresql.org
> 
> 
> I dont get the same issue on Mac OS (development laptop)
> 
> Please provide assistance.
> 
> 
> Regards,
> 
> 
> 
> _______________________________________________
> calendarserver-users mailing list
> calendarserver-users at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/calendarserver-users



More information about the calendarserver-users mailing list