package (#21) - installing pgRouting-1.0 on linux (#10) - Message List

installing pgRouting-1.0 on linux

I'm using: gdal-1.4 postgresql-8.2.3 CGAL-3.2.1 boost_1_33_1

I issued a command: ./configure --with-cgal=/usr/local/cgal --with-gaul=/usr/local

and got the following error:

checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes configure: checking for BOOST ... configure: checking for astar_search.hpp in /usr/include/boost/graph ... configure: checking for CGAL ... find: /usr/share/CGAL: No such file or directory configure: checking for GAUL ... configure: creating ./config.status config.status: creating Makefile [root@app16 pgRouting-1.0.0a]# make install sed 's,MODULE_PATHNAME,$libdir/routing,g' routing.sql.in >routing.sql gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fpic -I. -I/usr/local/pgsql/include/server -I/usr/local/pgsql/include/internal -D_GNU_SOURCE -c -o dijkstra.o dijkstra.c g++ -I. -I/usr/local/pgsql/include/server -I/usr/local/pgsql/include/internal -D_GNU_SOURCE -O2 -g -fpic -I/usr/include/boost/graph -c boost_wrapper.cpp gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fpic -I. -I/usr/local/pgsql/include/server -I/usr/local/pgsql/include/internal -D_GNU_SOURCE -c -o astar.o astar.c g++ -I. -I/usr/local/pgsql/include/server -I/usr/local/pgsql/include/internal -D_GNU_SOURCE -O2 -g -fpic -I/usr/include/boost/graph -c astar_boost_wrapper.cpp gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fpic -I. -I/usr/local/pgsql/include/server -I/usr/local/pgsql/include/internal -D_GNU_SOURCE -c -o drivedist.o drivedist.c g++ -I. -I/usr/local/pgsql/include/server -I/usr/local/pgsql/include/internal -D_GNU_SOURCE -O2 -g -fpic -I/usr/include/boost/graph -c boost_drivedist.cpp gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fpic -I. -I/usr/local/pgsql/include/server -I/usr/local/pgsql/include/internal -D_GNU_SOURCE -c -o shooting_star.o shooting_star.c shooting_star.c: In function fetch_edge_shooting_star': shooting_star.c:250: warning: ISO C90 forbids mixed declarations and code shooting_star.c: In function compute_shortest_path_shooting_star': shooting_star.c:435: warning: ISO C90 forbids mixed declarations and code shooting_star.c:442: warning: ISO C90 forbids mixed declarations and code shooting_star.c:292: warning: unused variable t' shooting_star.c:435: warning: unused variable stime' shooting_star.c:442: warning: unused variable etime' g++ -I. -I/usr/local/pgsql/include/server -I/usr/local/pgsql/include/internal -D_GNU_SOURCE -O2 -g -fpic -I/usr/include/boost/graph -c shooting_star_boost_wrapper.cpp In file included from shooting_star_boost_wrapper.cpp:29: ./shooting_star_search.hpp:21:42: boost/pending/relaxed_heap.hpp: No such file or directory shooting_star_boost_wrapper.cpp: In function int boost_shooting_star(edge_shooting_star_t*, unsigned int, int, int, bool, bool, path_element_t**, int*, char**, int)': shooting_star_boost_wrapper.cpp:183: warning: NULL used in arithmetic shooting_star_boost_wrapper.cpp:195: warning: NULL used in arithmetic make: *** [shooting_star_boost_wrapper.o] Error 1

  • Message #31

    Hello,

    Please look at my reply for the ticket #12.

    • Message #33

      Hi Anton,

      Thanks for your immediate reply. I'm using boost-1_33_1 but I'm still getting errors. I even edited the ./configure of boost because it doesn't look for the right dir. It has an "include" under the boost dir wherein the current boost dir goes directly to boost/graph.

      My config command is: ./configure --with-cgal=/usr/local/cgal --with-gaul=/usr/local --with-boost=/usr/local/include/boost-1_33_1

      I still get following the error: g++ -I. -I/usr/local/pgsql/include/server -I/usr/local/pgsql/include/internal -D_GNU_SOURCE -O2 -g -fpic -I/usr/local/include/boost-1_33_1/boost/graph -c shooting_star_boost_wrapper.cpp In file included from shooting_star_boost_wrapper.cpp:29: ./shooting_star_search.hpp:21:42: boost/pending/relaxed_heap.hpp: No such file or directory shooting_star_boost_wrapper.cpp: In function `int boost_shooting_star(edge_shooting_star_t*, unsigned int, int, int, bool, bool, path_element_t**, int*, char**, int)': shooting_star_boost_wrapper.cpp:183: warning: NULL used in arithmetic shooting_star_boost_wrapper.cpp:195: warning: NULL used in arithmetic make: *** [shooting_star_boost_wrapper.o] Error 1

      • Message #34

        Can you confirm that you have /usr/local/include/boost-1_33_1/pending/relaxed_heap.hpp file?

        • Message #35

          I have it in: /usr/local/include/boost-1_33_1/boost/pending/relaxed_heap.hpp

          • Message #39

            Ok, I will play around with the path like this. Probably we have troubles with configure script.

            Right now I can suggest you to put Boost into /usr/local/include/boost directory.

            Can you please try it and report the result?

            • Message #41

              Got it. I did what you asked: rename my boost dir into /usr/local/include/boost. I guess the config file is not yet very flexible with directory names even if you specified it in your ./configure command.

              • Message #42

                Yeah, we need to fix it a little bit.

                Thank you for your report - that's how we make pgRouting better :)

              • Message #43

                I made some changes in configure script. May I ask you to download the version from SVN and try it with --with-boost=/usr/local/include/boost-1_33_1?