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

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@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@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 :wink:

Thanks,
Nate

Nate,

It looks like you need to install the various *-dev packages for thins like postgresql, boost, cgal, etc.

-Steve

On 6/29/2013 10:07 AM, Nate Wessel wrote:

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@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@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 :wink:

Thanks,
Nate

_______________________________________________
Pgrouting-users mailing list
Pgrouting-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-users

Oh and the version of Boost might be a problem. I recommend using 1.42 which is what I use here into we sort out issues using the new versions.

-Steve

On 6/29/2013 10:07 AM, Nate Wessel wrote:

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@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@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 :wink:

Thanks,
Nate

_______________________________________________
Pgrouting-users mailing list
Pgrouting-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-users

Just use this PPA, which is available for a about a week now:
https://launchpad.net/~georepublic/+archive/pgrouting-unstable

It’s a new PPA, because I didn’t want that users accidentally upgrade.

Daniel

···

On Sat, Jun 29, 2013 at 11:07 PM, Nate Wessel <bike756@gmail.com> wrote:

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@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@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 :wink:

Thanks,
Nate


Pgrouting-users mailing list
Pgrouting-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-users


Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: http://georepublic.de