package (#21) - compiling pgrouting (#152) - Message List

compiling pgrouting

Im getting a problem compiling pgrouting, looks like is a path problem for PostgreSQL but i dont know how to fix it.

pgRouting is on /usr/local/pgrouting/ Postgres Data is on /usr/local/pgsql/ Postgres header is on /usr/local/include/postgresql/server/postgres.h

[root /usr/local/pgrouting]# cmake . -- PostgreSQL not found. FATALERROR Please check your Boost installation. Boost headers were found here: /usr/local/include/boost-1_35 Output directory for libraries is set to /usr/local/lib/postgresql Installation directory for libraries is set to /usr/local/lib/postgresql and for SQL files is set to /usr/share/postlbs CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: POSTGRESQL_INCLUDE_DIR (ADVANCED)

used as include directory in directory /usr/local/pgrouting used as include directory in directory /usr/local/pgrouting/core used as include directory in directory /usr/local/pgrouting/core/src used as include directory in directory /usr/local/pgrouting/core/sql

-- Configuring done

  • Message #516

    Hi,

    Sorry, my fault. Can you please check out the latest version from SVN? Or (and it is probably easier) you can download FindPostgreSQL.cmake file from here - http://pgrouting.postlbs.org/browser/trunk/cmake/FindPostgreSQL.cmake?rev=179&format=raw and then replace yours cmake/FindPostreSQL.cmake with this new version.

    • Message #517

      ok, i fix that Now i get this error. How i set $libdir? and where is librouting, i cant find that dir.

      [root@ /usr/local/pgrouting/core/sql]# psql -U pgsql -f routing_core.sql routing CREATE TYPE CREATE TYPE psql:routing_core.sql:32: ERROR: could not access file "$libdir/librouting": No such file or directory psql:routing_core.sql:43: ERROR: could not access file "$libdir/librouting": No such file or directory psql:routing_core.sql:53: ERROR: could not access file "$libdir/librouting": No such file or directory

      • Message #518

        Well, actually it depends on your distro. It should be set already, try to play around with ldconfig.

        Can you also check lib directory of pgrouting after the compilation is finished? Does it contain any .so files. If so, your $libdir is not set indeed.