[pgrouting-users] Complilation Errors on Tps and Disjkstra

Stephen Woodbridge woodbri at swoodbridge.com
Sat Jul 30 10:19:38 EDT 2011


Your first error is most likely the issue. The build system can not find 
postgres.h which is the postgresql development header file. You need to 
install the postgresql development files to build pgRouting. So you 
might need to do something like:

sudo yum install postgresql-devel

You need to make sure you all the dependencies installed.

-Steve

On 7/30/2011 6:18 AM, Jules Kouadio wrote:
> Hi everybody
> On  CentOs 5 (french version).
> Why  all this errors after the "make install" for Tps and dijkstra?
> Can someone help me ?
>
> Thanks !
>
> ERROR [root at bnetd pgrouting]# make install
>
> [ 8%] Building C object extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o
> Dans le fichier inclus à partir de
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.h:25:22: erreur: postgres.h
> : Aucun fichier ou répertoire de ce type Dans le fichier inclus à
> partir de /home/sekedoua/pgrouting/extra/tsp/src/tsp.h:26, à partir de
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
> /home/sekedoua/pgrouting/core/src/dijkstra.h:25:22: erreur: postgres.h
> : Aucun fichier ou répertoire de ce type In file included from
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.h:26, from
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
> /home/sekedoua/pgrouting/core/src/dijkstra.h:32: erreur: expected
> specifier-qualifier-list before ‘float8’
> /home/sekedoua/pgrouting/core/src/dijkstra.h:40: erreur: expected
> specifier-qualifier-list before ‘float8’
> /home/sekedoua/pgrouting/core/src/dijkstra.h:47: erreur: expected
> declaration specifiers or ‘...’ before ‘bool’
> /home/sekedoua/pgrouting/core/src/dijkstra.h:47: erreur: expected
> declaration specifiers or ‘...’ before ‘bool’ In file included from
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.h:31: erreur: expected
> specifier-qualifier-list before ‘float8’
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:25:26: erreur:
> executor/spi.h : Aucun fichier ou répertoire de ce type
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:26:21: erreur: funcapi.h
> : Aucun fichier ou répertoire de ce type
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:27:29: erreur:
> catalog/pg_type.h : Aucun fichier ou répertoire de ce type
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:32:18: erreur: fmgr.h :
> Aucun fichier ou répertoire de ce type
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:73: erreur: expected ‘=’,
> ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tsp’
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:98: erreur: expected ‘)’
> before ‘*’ token /home/sekedoua/pgrouting/extra/tsp/src/tsp.c: In
> function ‘finish’: /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:111:
> erreur: ‘SPI_OK_FINISH’ undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:111: erreur: (Each
> undeclared identifier is reported only once
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:111: erreur: for each
> function it appears in.)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:113: erreur: ‘ERROR’
> undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c: Hors de toute fonction :
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:123: erreur: expected
> specifier-qualifier-list before ‘float8’
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:129: erreur: expected ‘)’
> before ‘*’ token /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:152:
> erreur: expected ‘)’ before ‘*’ token
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c: In function ‘solve_tsp’:
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:194: erreur: ‘Portal’
> undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:194: erreur: expected ‘;’
> before ‘SPIportal’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:195:
> erreur: ‘bool’ undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:195: erreur: expected ‘;’
> before ‘moredata’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202:
> erreur: unknown field ‘x’ specified in initializer
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : éléments
> en excès dans l'initialisation de la structure
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : (near
> initialization for ‘point_columns’)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: erreur: unknown
> field ‘y’ specified in initializer
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : éléments
> en excès dans l'initialisation de la structure
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : (near
> initialization for ‘point_columns’)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:228: erreur: ‘ERROR’
> undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:238: erreur:
> ‘SPI_OK_CONNECT’ undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:244: attention :
> assignment makes pointer from integer without a cast
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:252: erreur: ‘SPIportal’
> undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:252: erreur: ‘true’
> undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:261: erreur: ‘moredata’
> undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:261: erreur: ‘TRUE’
> undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:267: erreur:
> ‘SPI_tuptable’ undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:271: erreur:
> ‘SPI_processed’ undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:278: attention :
> assignment makes pointer from integer without a cast
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:280: attention :
> assignment makes pointer from integer without a cast
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:291: erreur:
> ‘SPITupleTable’ undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:291: erreur: ‘tuptable’
> undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:292: erreur: ‘TupleDesc’
> undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:292: erreur: expected ‘;’
> before ‘tupdesc’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:298:
> erreur: ‘HeapTuple’ undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:298: erreur: expected ‘;’
> before ‘tuple’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:300:
> erreur: ‘tuple’ undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:300: erreur: ‘tupdesc’
> undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:309: erreur: ‘FALSE’
> undeclared (first use in this function)
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:325: erreur: ‘point_t’
> has no member named ‘x’
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:326: erreur: ‘point_t’
> has no member named ‘y’
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:364: erreur:
> ‘ERRCODE_E_R_E_CONTAINING_SQL_NOT_PERMITTED’ undeclared (first use in
> this function) /home/sekedoua/pgrouting/extra/tsp/src/tsp.c: Hors de
> toute fonction : /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:370:
> attention : la définition de données n'a pas de type ni de classe de
> stockage /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:370: attention :
> noms de paramètres (sans type) dans la déclaration de fonction
> /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:372: erreur: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tsp’ make[2]: ***
> [extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o] Erreur 1 make[1]: ***
> [extra/tsp/src/CMakeFiles/routing_tsp.dir/all] Erreur 2 make: ***
>
> 2011/7/29, Ricardo Bayley<ricardo.bayley at gmail.com>:
>> Hi folks,
>>
>> On the pgRouting website, it says that the latest compiled  windows binaries
>> are for pg8.4.2
>> Is this strictily for 8.4.2 or for all the 8.4.x series ?
>>
>> best regards
>>
>> Ricardo
>>
>
>



More information about the Pgrouting-users mailing list