Ticket #217 (new bug report)

Opened 2 months ago

Last modified 2 months ago

pgrouting Installation problem with ubuntu 10.04

Reported by: nicholas Owned by: somebody
Priority: major Milestone:
Component: A* Version: 1.03
Keywords: Cc:

Description

Hi,

I am using ubuntu 10.04, postgres 8.3.

I get error when i do make, and not able install the pgrouting.

Step1: sudo cmake -DWITH_TSP=ON -DWITH_DD=ON .

CMake Warning (dev) at CMakeLists.txt:12 (add_subdirectory):

The source directory

/home/ubuntu/install/pgrouting/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.

Boost headers were found here: /usr/include Output directory for libraries is set to /usr/lib/postgresql/8.4/lib Installation directory for libraries is set to /usr/lib/postgresql/8.4/lib and for SQL files is set to /usr/share/postlbs Installation directory for libraries is set to /usr/lib/postgresql/8.4/lib -- Configuring done -- Generating done -- Build files have been written to: /home/ubuntu/install/pgrouting

Step 2: sudo make Scanning dependencies of target routing_tsp [ 8%] Building C object extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o In file included from /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:22: /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.h:25:22: error: postgres.h: No such file or directory In file included from /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.h:26,

from /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:22:

/home/ubuntu/install/pgrouting/core/src/dijkstra.h:32: error: expected specifier-qualifier-list before ‘float8’ /home/ubuntu/install/pgrouting/core/src/dijkstra.h:40: error: expected specifier-qualifier-list before ‘float8’ /home/ubuntu/install/pgrouting/core/src/dijkstra.h:47: error: expected declaration specifiers or ‘...’ before ‘bool’ /home/ubuntu/install/pgrouting/core/src/dijkstra.h:47: error: expected declaration specifiers or ‘...’ before ‘bool’ In file included from /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:22: /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.h:31: error: expected specifier-qualifier-list before ‘float8’ /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:25:26: error: executor/spi.h: No such file or directory /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:26:21: error: funcapi.h: No such file or directory /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:31:18: error: fmgr.h: No such file or directory /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘tsp’ /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:97: error: expected ‘)’ before ‘*’ token /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c: In function ‘finish’: /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:110: error: ‘SPI_OK_FINISH’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:110: error: (Each undeclared identifier is reported only once /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:110: error: for each function it appears in.) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:112: error: ‘ERROR’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c: At top level: /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:122: error: expected specifier-qualifier-list before ‘float8’ /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:128: error: expected ‘)’ before ‘*’ token /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:151: error: expected ‘)’ before ‘*’ token /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c: In function ‘solve_tsp’: /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:193: error: ‘Portal’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:193: error: expected ‘;’ before ‘SPIportal’ /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:194: error: ‘bool’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:194: error: expected ‘;’ before ‘moredata’ /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:201: error: unknown field ‘x’ specified in initializer /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:201: warning: excess elements in struct initializer /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:201: warning: (near initialization for ‘point_columns’) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:201: error: unknown field ‘y’ specified in initializer /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:201: warning: excess elements in struct initializer /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:201: warning: (near initialization for ‘point_columns’) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:227: error: ‘ERROR’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:237: error: ‘SPI_OK_CONNECT’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:243: warning: assignment makes pointer from integer without a cast /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:251: error: ‘SPIportal’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:251: error: ‘true’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:260: error: ‘moredata’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:260: error: ‘TRUE’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:266: error: ‘SPI_tuptable’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:270: error: ‘SPI_processed’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:277: warning: assignment makes pointer from integer without a cast /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:279: warning: assignment makes pointer from integer without a cast /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:290: error: ‘SPITupleTable’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:290: error: ‘tuptable’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:291: error: ‘TupleDesc?’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:291: error: expected ‘;’ before ‘tupdesc’ /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:297: error: ‘HeapTuple?’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:297: error: expected ‘;’ before ‘tuple’ /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:299: error: ‘tuple’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:299: error: ‘tupdesc’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:308: error: ‘FALSE’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:324: error: ‘point_t’ has no member named ‘x’ /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:325: error: ‘point_t’ has no member named ‘y’ /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:363: error: ‘ERRCODE_E_R_E_CONTAINING_SQL_NOT_PERMITTED’ undeclared (first use in this function) /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c: At top level: /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:369: warning: data definition has no type or storage class /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:369: warning: parameter names (without types) in function declaration /home/ubuntu/install/pgrouting/extra/tsp/src/tsp.c:371: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘tsp’ make[2]: *** [extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o] Error 1 make[1]: *** [extra/tsp/src/CMakeFiles/routing_tsp.dir/all] Error 2 make: *** [all] Error 2

Change History

Changed 2 months ago by daniel

You write you use Postgres 8.3, but standard Postgres with Ubuntu 10.04 is 8.4 as far as I know. Do you have any non-standard installation?

Note: See TracTickets for help on using tickets.