[pgrouting-users] PgRouting fails to compile on Ubuntu 13.04

Nate Wessel bike756 at gmail.com
Sat Jun 29 07:07:21 PDT 2013


Howdy all,
I've spent the last three days trying to install PgRouting on my Xubuntu 
13.04 machine. I've got a deadline coming up for a big cartography 
project and this is driving me up a wall! I was able to install the 
program quite easily through the PPA before I upgraded from Ubuntu 
12.04. I tried adding the PPA again, but I get a 404, I guess because 
there's nothing there for Raring yet.

I've tried following every set of installation instructions on the web 
to no avail.

I tried compiling both the stable and unstable releases from source but 
things keep failing. At first, cmake failed to find my postgresql 
installation. After poking around a bit and adding an extra directories 
to cmake/FindPostgreSQL.cmake, the errors went away and it looked like 
cmake had run successfully:


nate at desktop:/usr/local/src/pgrouting$ cmake .
-- PGROUTING_GIT_TAG: v2.0.0-alpha
-- PGROUTING_GIT_BUILD: 97
-- PGROUTING_GIT_HASH: 9193863
-- PGROUTING_GIT_BRANCH: develop
-- PGROUTING_VERSION_REVISION_NAME: 9193863 develop
-- PGROUTING_VERSION_REVISION_HASH: 9193863
-- UNIX=1
-- WIN32=
-- POSTGRESQL_EXECUTABLE is /usr/lib/postgresql/9.1/bin/postgres
-- POSTGRESQL_PG_CONFIG is /usr/bin/pg_config
-- POSTGRESQL_INCLUDE_DIR: /usr/include/postgresql
-- POSTGRESQL_LIBRARIES: /usr/lib
-- Boost version: 1.49.0
Boost headers were found here: /usr/include
-- POSTGRESQL_VERSION_STRING is PostgreSQL 9.1.9
-- POSTGRESQL_VERSION is 9.1.9
-- Install directory for libraries is set to /usr/lib/postgresql/9.1/lib
-- Contrib directory for SQL files is set to 
/usr/share/postgresql/9.1/contrib/pgrouting-2.0
-- Extension directory for SQL files is set to 
/usr/share/postgresql/9.1/extension
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/pgrouting

When I run make however, it quickly fails to find some includes:

nate at desktop:/usr/local/src/pgrouting$ make
Scanning dependencies of target trsp
[  3%] Building C object src/trsp/src/CMakeFiles/trsp.dir/trsp.c.o
/usr/local/src/pgrouting/src/trsp/src/trsp.c:2:26: fatal error: 
executor/spi.h: No such file or directory
compilation terminated.
make[2]: *** [src/trsp/src/CMakeFiles/trsp.dir/trsp.c.o] Error 1
make[1]: *** [src/trsp/src/CMakeFiles/trsp.dir/all] Error 2
make: *** [all] Error 2

I'm getting a little desparate! Can anyone help me with this? I'd give 
anything to just have the GUI package manager take care of all this for me.

I have no idea what I'm doing trying to compile from source. I can 
follow the instructions from the README.md file, but not after they fail 
on the first step ;-)

Thanks,
Nate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pgrouting-users/attachments/20130629/60e14879/attachment.html>


More information about the Pgrouting-users mailing list