[pgrouting-users] Error configure pgrouting - install
Daniel Kastl
daniel at georepublic.de
Tue Jul 26 05:36:10 EDT 2011
On Tue, Jul 26, 2011 at 9:03 AM, <Juan.Garzon at aguazul.com.co> wrote:
> Hi All,
>
> I am installing Pgrouting for PostGreSQL *8.4* on Linux Red Hat. I am
> following the instructions provided on this page; <http://download.osgeo.org/pgrouting/forum/pgrouting.postlbs.org/wiki/OSMTutorial.html>
>
>
> http://www.pgrouting.org/docs/1.x/install.html
>
> However when running (the second step of the 2. Compile pgRouting core
> (with TSP and DD flag on) stage);
>
> cmake -DWITH_TSP=ON -DWITH_DD=ON .
>
> my postgresql 8.4 /usr/local/pgsql/bin
>
You use your own compiled PostgreSQL right?
So you need to tell CMake where to find PostgreSQL if it's not a standard
location:
https://github.com/pgRouting/pgrouting/blob/master/cmake/FindPostgreSQL.cmake
Daniel
> I get the following error;
>
> root at gislinux pgrouting-1.05]# cmake -DWITH_TSP=ON -DWITH_DD=ON .
> CMake Warning (dev) at CMakeLists.txt:12 (add_subdirectory):
> The source directory
>
> /usr/local/src/pgrouting-1.05/cmake
>
> does not contain a CMakeLists.txt file.
>
> CMake does not support this case but it used to work accidentally and is
> being allowed for compatibility.
>
> Policy CMP0014 is not set: Input directories must have CMakeLists.txt.
> Run
> "cmake --help-policy CMP0014" for policy details. Use the cmake_policy
> command to set the policy and suppress this warning.
> This warning is for project developers. Use -Wno-dev to suppress it.
>
> -- PostgreSQL not found.
> FATALERROR Please check your PostgreSQL installation.
> Boost headers were found here: /usr/local/include
> Output directory for libraries is set to sh: pg_config: command not found
> Installation directory for libraries is set to sh: pg_config: command not
> found and for SQL files is set to /usr/share/postlbs
> Installation directory for libraries is set to sh: pg_config: command not
> found
> 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/src/pgrouting-1.05
> used as include directory in directory
> /usr/local/src/pgrouting-1.05/core
> used as include directory in directory
> /usr/local/src/pgrouting-1.05/extra/tsp
> used as include directory in directory
> /usr/local/src/pgrouting-1.05/extra/tsp/src
> used as include directory in directory
> /usr/local/src/pgrouting-1.05/extra/tsp/sql
> used as include directory in directory
> /usr/local/src/pgrouting-1.05/extra/driving_distance
> used as include directory in directory
> /usr/local/src/pgrouting-1.05/extra/driving_distance/src
> used as include directory in directory
> /usr/local/src/pgrouting-1.05/extra/driving_distance/sql
> used as include directory in directory
> /usr/local/src/pgrouting-1.05/core/src
> used as include directory in directory
> /usr/local/src/pgrouting-1.05/core/sql
>
> -- Configuring incomplete, errors occurred!
>
> I am fairly new to PostGreSQL and Linux, so any help is greatly
> appreciated.
>
> *
> **Juan Pablo Garzón Dueñas*
> *Profesional II Administración de Base de Datos Espacial*
> *Aguazul SA E.S.P.*
>
> *Calle 82 No 19 A 34 Piso 7 - Tel: 7470001 Ext. 1038 - *
> *Cel: 318 415 4938 - 317 4400209
> Fax: 7470010*
> P *Antes de imprimir piense en su responsabilidad y compromiso con el
> medio ambiente.*
>
>
> _______________________________________________
> Pgrouting-users mailing list
> Pgrouting-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-users
>
>
--
Georepublic UG & Georepublic Japan
eMail: daniel.kastl at georepublic.de
Web: http://georepublic.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/pgrouting-users/attachments/20110726/050b4666/attachment.html
More information about the Pgrouting-users
mailing list