I've been trying to install PostGIS and pgRouting on an AWS Ubuntu server (first tried 13.10, then reverted to 12.04, both 64bit "small" instance) for several days now but no matter what I do I keep getting hung up by the dependency libcgal8.
Among many other things, I've tried using exactly the steps @dkastl recommended in this post:
sudo add-apt-repository ppa:ubuntugis/ppa sudo add-apt-repository ppa:georepublic/pgrouting sudo apt-get update sudo apt-get install postgresql-9.1-pgrouting postgresql-9.1-postgis-2.0
After executing the last command the system complained that
Package 'postgresql-9.1-postgis-2.0 is unavailable, but is referred to by another package
Checking the ubuntugis ppa: I determined that the correct name is
postgresql-9.1-postgis. Substituting that package name got me to the roadblock I've encountered all along:
The following packages have unmet dependencies: postgresql-9.1-pgrouting : Depends : libcgal8 but is not installable E: Unable to correct problems, you have held broken packages.
I've tried everything to get around this issue including the following:
- Separating the postgis and pgrouting install commands and switching the order they were executed
- Tried using
$ sudo apt-get install postgresql-9.1-pgrouting --no-install-recommendsbut this didn't work either (still complained about unmet libcgal8 dependency)
- Tried downloading libcgal8 and its dependencies and installing them directly, which was a lost cause
$ sudo apt-get -f installwhich was suggested by the system at some point, and seemed to do something but it didn't fix the problem
- So many other things that I either can't remember or were too desperate to mention
Hoping one of you can point to something really silly that this newb is doing or not doing. Thanks in advance for your help.