package (#21) - Installation problem on Debian Lenny (#269) - Message List
Dear users,
on Debian Etch everything was fine, but on Lenny I install libboost with apt-get install libboost-graph-dev
and then I tried in the trunk-pgrouting-directory a cmake . (everything nice), but the errors came after: "make", like that:
/home/bau/trunk# make Scanning dependencies of target routing [ 16%] Building C object core/src/CMakeFiles/routing.dir/dijkstra.o /home/bau/trunk/core/src/dijkstra.c:23:26: error: executor/spi.h: Datei oder Verzeichnis nicht gefunden /home/bau/trunk/core/src/dijkstra.c:24:21: error: funcapi.h: Datei oder Verzeichnis nicht gefunden /home/bau/trunk/core/src/dijkstra.c:26:18: error: fmgr.h: Datei oder Verzeichnis nicht gefunden /home/bau/trunk/core/src/dijkstra.c:30: warning: parameter names (without types) in function declaration /home/bau/trunk/core/src/dijkstra.c: In function âfinishâ: /home/bau/trunk/core/src/dijkstra.c:63: error: âSPI_OK_FINISHâ undeclared (first use in this function) /home/bau/trunk/core/src/dijkstra.c:63: error: (Each undeclared identifier is reported only once /home/bau/trunk/core/src/dijkstra.c:63: error: for each function it appears in.) /home/bau/trunk/core/src/dijkstra.c: At top level: /home/bau/trunk/core/src/dijkstra.c:81: error: expected â)â before â*â token /home/bau/trunk/core/src/dijkstra.c:136: error: expected â)â before â*â token /home/bau/trunk/core/src/dijkstra.c: In function âcompute_shortest_pathâ: /home/bau/trunk/core/src/dijkstra.c:181: error: âPortalâ undeclared (first use in this function) /home/bau/trunk/core/src/dijkstra.c:181: error: expected â;â before âSPIportalâ /home/bau/trunk/core/src/dijkstra.c:201: error: âSPI_OK_CONNECTâ undeclared (first use in this function)
Has anybody an idea whats going wrong?
Thank you in advance, Kai
-
Message #954
Ok, we found a solution.
We didn`t install postgresql with apt-get but took the 8.3.5-source-code.
We checked pgrouting out from svn, then we copied all the stuff from .....pgsql/include/server to the /trunk/core
# cp -R /usr/local/pgsql/include/server/* /home/bau/trunk/core/
then we changed cmake/FindPostgresql.cmake
The path should be
/usr/include/postgresql
aftewr that:
export PATH="$PATH:/usr/local/pgsql/bin"
and then:
/usr/lib/postgresql/8.3/lib$ cp librouting.so /usr/local/pgsql/lib/
Best regards, Kai
Kai-Behncke05/15/09 21:32:06 (18 months ago)