[pgrouting-users] Build problems with postgres 8.3 on Debian Lenny

Stephen Woodbridge woodbri at swoodbridge.com
Wed Mar 25 14:51:08 EDT 2009


Hi all,

I can not get pgRouting to build on Debian Lenny with postgresql-8.3, 
see log below. Any thoughts on how to resolve this?

-Steve

woodbri at mappy:/u/software$ tar xzf pgRouting-1.0.tgz
woodbri at mappy:/u/software$ cd pgrouting/
woodbri at mappy:/u/software/pgrouting$ BOOST_PATH=/usr/include/boost cmake 
-DWITH_TSP=ON -DWITH_DD=ON .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PostgreSQL: /usr/include/postgresql/8.3/server, /usr/lib/libpq.so
-- Boost version: 1.34.1
-- Found the following Boost libraries:
Boost headers were found here: /usr/include
Output directory for libraries is set to /usr/lib/postgresql/8.3/lib
-- Found PGROUTING_CORE core: /u/software/pgrouting/core/src
Output directory for libraries is set to /usr/lib
-- Found GAUL: /usr/local/lib/libgaul.so
Output directory for libraries is set to /usr/lib
-- Found CGAL: /usr/include/CGAL, /usr/lib/libCGAL.so
-- Configuring done
-- Generating done
-- Build files have been written to: /u/software/pgrouting
woodbri at mappy:/u/software/pgrouting$ make
Scanning dependencies of target routing
[  8%] Building C object core/src/CMakeFiles/routing.dir/dijkstra.o
In file included from /usr/include/boost/config/select_stdlib_config.hpp:20,
                  from /usr/include/boost/config.hpp:40,
                  from /usr/include/CGAL/config.h:38,
                  from /usr/include/CGAL/basic.h:28,
                  from /usr/include/CGAL/number_type_basic.h:45,
                  from /usr/include/CGAL/float.h:28,
                  from 
/usr/include/postgresql/8.3/server/utils/timestamp.h:18,
                  from /usr/include/postgresql/8.3/server/access/xlog.h:19,
                  from 
/usr/include/postgresql/8.3/server/storage/bufpage.h:20,
                  from 
/usr/include/postgresql/8.3/server/access/relscan.h:18,
                  from 
/usr/include/postgresql/8.3/server/access/heapam.h:18,
                  from /usr/include/postgresql/8.3/server/executor/spi.h:26,
                  from /u/software/pgrouting/core/src/dijkstra.c:23:
/usr/include/boost/config/no_tr1/utility.hpp:21:21: error: utility: No 
such file or directory
In file included from /usr/include/boost/config.hpp:53,
                  from /usr/include/CGAL/config.h:38,
                  from /usr/include/CGAL/basic.h:28,
                  from /usr/include/CGAL/number_type_basic.h:45,
                  from /usr/include/CGAL/float.h:28,
                  from 
/usr/include/postgresql/8.3/server/utils/timestamp.h:18,
                  from /usr/include/postgresql/8.3/server/access/xlog.h:19,
                  from 
/usr/include/postgresql/8.3/server/storage/bufpage.h:20,
                  from 
/usr/include/postgresql/8.3/server/access/relscan.h:18,
                  from 
/usr/include/postgresql/8.3/server/access/heapam.h:18,
                  from /usr/include/postgresql/8.3/server/executor/spi.h:26,
                  from /u/software/pgrouting/core/src/dijkstra.c:23:
/usr/include/boost/config/platform/linux.hpp:14:19: error: cstdlib: No 
such file or directory
In file included from /usr/include/boost/config.hpp:57,
                  from /usr/include/CGAL/config.h:38,
                  from /usr/include/CGAL/basic.h:28,
                  from /usr/include/CGAL/number_type_basic.h:45,
                  from /usr/include/CGAL/float.h:28,
                  from 
/usr/include/postgresql/8.3/server/utils/timestamp.h:18,
                  from /usr/include/postgresql/8.3/server/access/xlog.h:19,
                  from 
/usr/include/postgresql/8.3/server/storage/bufpage.h:20,
                  from 
/usr/include/postgresql/8.3/server/access/relscan.h:18,
                  from 
/usr/include/postgresql/8.3/server/access/heapam.h:18,
                  from /usr/include/postgresql/8.3/server/executor/spi.h:26,
                  from /u/software/pgrouting/core/src/dijkstra.c:23:
/usr/include/boost/config/suffix.hpp:433: error: expected '=', ',', ';', 
'asm' or '__attribute__' before 'boost'
In file included from /usr/include/CGAL/basic.h:28,
                  from /usr/include/CGAL/number_type_basic.h:45,
                  from /usr/include/CGAL/float.h:28,
                  from 
/usr/include/postgresql/8.3/server/utils/timestamp.h:18,
                  from /usr/include/postgresql/8.3/server/access/xlog.h:19,
                  from 
/usr/include/postgresql/8.3/server/storage/bufpage.h:20,
                  from 
/usr/include/postgresql/8.3/server/access/relscan.h:18,
                  from 
/usr/include/postgresql/8.3/server/access/heapam.h:18,
                  from /usr/include/postgresql/8.3/server/executor/spi.h:26,
                  from /u/software/pgrouting/core/src/dijkstra.c:23:
/usr/include/CGAL/config.h:199:21: error: algorithm: No such file or 
directory

[ snip lots more errors like these ]

In file included from 
/usr/include/postgresql/8.3/server/utils/timestamp.h:18,
                  from /usr/include/postgresql/8.3/server/access/xlog.h:19,
                  from 
/usr/include/postgresql/8.3/server/storage/bufpage.h:20,
                  from 
/usr/include/postgresql/8.3/server/access/relscan.h:18,
                  from 
/usr/include/postgresql/8.3/server/access/heapam.h:18,
                  from /usr/include/postgresql/8.3/server/executor/spi.h:26,
                  from /u/software/pgrouting/core/src/dijkstra.c:23:
/usr/include/CGAL/float.h:39: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'CGAL'
make[2]: *** [core/src/CMakeFiles/routing.dir/dijkstra.o] Error 1
make[1]: *** [core/src/CMakeFiles/routing.dir/all] Error 2
make: *** [all] Error 2
woodbri at mappy:/u/software/pgrouting$




More information about the Pgrouting-users mailing list