[pgrouting-users] Aaargh! Building is hard... .
Stephen Mather
stephen at smathermather.com
Wed Nov 27 08:48:00 PST 2013
Ok, so to hijack my own thread a bit, the Ubuntu package didn't actually
add the postgis dependency, so I had to add manually:
sudo apt-get install postgresql-9.1-postgis-2.1
On Wed, Nov 27, 2013 at 11:33 AM, Stephen Mather
<stephen at smathermather.com>wrote:
> BTW, interesting artifact of (I think) all the machinations to build
> pgRouting-- now the package manager version works... . I'm wondering if
> the package manager was build on a clean build of Ubuntu, or one which may
> have had custom built libraries (just making wild guesses here...).
>
> Thanks,
> Best,
> Steve
>
>
>
>
> On Wed, Nov 27, 2013 at 11:21 AM, Stephen Mather <
> stephen at smathermather.com> wrote:
>
>> Hi All,
>>
>> The package management for Ubuntu 12.04 isn't working for me (see earlier
>> message about this), so I decided I'm an adequate keyboard cowboy to build
>> from source, but alas, no such luck.
>>
>> steve at lion:~/Documents/github/pgrouting$ mkdir build
>> steve at lion:~/Documents/github/pgrouting$ cd build/
>> steve at lion:~/Documents/github/pgrouting/build$ cmake -DWITH_DD=ON ..
>> -- The C compiler identification is GNU 4.6.3
>> -- The CXX compiler identification is GNU 4.6.3
>> -- 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
>> -- PGROUTING_GIT_TAG: pgrouting-2.0.0
>> -- PGROUTING_GIT_BUILD: 0
>> -- PGROUTING_GIT_HASH: d6ed2cb
>> -- PGROUTING_GIT_BRANCH: master
>> -- PGROUTING_VERSION_REVISION_NAME: d6ed2cb master
>> -- PGROUTING_VERSION_REVISION_HASH: d6ed2cb
>> -- UNIX=1
>> -- WIN32=
>> -- POSTGRESQL_EXECUTABLE is /usr/lib/postgresql/9.1/bin/postgres
>> -- POSTGRESQL_PG_CONFIG is /usr/bin/pg_config
>> -- POSTGRESQL_INCLUDE_DIR: /usr/include/postgresql/9.3/server
>> -- POSTGRESQL_LIBRARIES: /usr/lib
>> -- Boost version: 1.55.0
>> -- Boost headers were found here: /usr/local/include
>> -- POSTGRESQL_VERSION_STRING is PostgreSQL 9.3.1
>> -- POSTGRESQL_VERSION is 9.3.1
>> -- PGSQL_VERSION is 93
>> -- Install directory for libraries is set to /usr/lib/postgresql/9.3/lib
>> -- Contrib directory for SQL files is set to
>> /usr/share/postgresql/9.3/contrib/pgrouting-2.0
>> -- Extension directory for SQL files is set to
>> /usr/share/postgresql/9.3/extension
>> -- Boost version: 1.55.0
>> -- Found the following Boost libraries:
>> -- thread
>> -- Boost version: 1.55.0
>> -- Found the following Boost libraries:
>> -- thread
>> -- system
>> -- CGAL_INCLUDE_DIR=/usr/local/include
>> -- CGAL_LIBRARIES=/usr/local/lib/libCGAL.so
>> --
>> BOOST_THREAD_LIBRARIES=/usr/local/lib/libboost_thread.so;pthread;/usr/local/lib/libboost_thread.so;pthread;/usr/local/lib/libboost_system.so
>> -- GMP_LIBRARIES=/usr/lib/x86_64-linux-gnu/libgmp.so
>> -- Found CGAL: /usr/local/include, /usr/local/lib/libCGAL.so,
>> /usr/local/lib/libboost_thread.so;pthread;/usr/local/lib/libboost_thread.so;pthread;/usr/local/lib/libboost_system.so,
>> /usr/lib/x86_64-linux-gnu/libgmp.so
>> -- Configuring done
>> -- Generating done
>> -- Build files have been written to:
>> /home/smathermather/Documents/github/pgrouting/build
>> steve at lion:~/Documents/github/pgrouting/build$ make
>> Scanning dependencies of target trsp
>> [ 2%] Building C object src/trsp/src/CMakeFiles/trsp.dir/trsp.c.o
>> [ 5%] Building CXX object
>> src/trsp/src/CMakeFiles/trsp.dir/trsp_core.cpp.o
>> [ 8%] Building CXX object
>> src/trsp/src/CMakeFiles/trsp.dir/GraphDefinition.cpp.o
>> [ 8%] Built target trsp
>> Scanning dependencies of target astar
>> [ 11%] Building C object src/astar/src/CMakeFiles/astar.dir/astar.c.o
>> [ 14%] Building CXX object
>> src/astar/src/CMakeFiles/astar.dir/astar_boost_wrapper.cpp.o
>> [ 14%] Built target astar
>> Scanning dependencies of target dijkstra
>> [ 17%] Building C object
>> src/dijkstra/src/CMakeFiles/dijkstra.dir/dijkstra.c.o
>> [ 20%] Building CXX object
>> src/dijkstra/src/CMakeFiles/dijkstra.dir/boost_wrapper.cpp.o
>> [ 20%] Built target dijkstra
>> Scanning dependencies of target kdijkstra
>> [ 22%] Building CXX object
>> src/kdijkstra/src/CMakeFiles/kdijkstra.dir/k_targets_boost_wrapper.cpp.o
>> [ 25%] Building C object
>> src/kdijkstra/src/CMakeFiles/kdijkstra.dir/k_targets_sp.c.o
>> [ 25%] Built target kdijkstra
>> Scanning dependencies of target apsp_johnson
>> [ 28%] Building C object
>> src/apsp_johnson/src/CMakeFiles/apsp_johnson.dir/apsp_johnson.c.o
>> [ 31%] Building CXX object
>> src/apsp_johnson/src/CMakeFiles/apsp_johnson.dir/apsp_johnson_boost_wrapper.cpp.o
>> [ 31%] Built target apsp_johnson
>> Scanning dependencies of target apsp_warshall
>> [ 34%] Building C object
>> src/apsp_warshall/src/CMakeFiles/apsp_warshall.dir/apsp.c.o
>> [ 37%] Building CXX object
>> src/apsp_warshall/src/CMakeFiles/apsp_warshall.dir/apsp_boost_wrapper.cpp.o
>> [ 37%] Built target apsp_warshall
>> Scanning dependencies of target routing
>> Linking CXX shared library lib/librouting.so
>> [ 37%] Built target routing
>> Scanning dependencies of target bd_dijkstra
>> [ 40%] Building C object
>> src/bd_dijkstra/src/CMakeFiles/bd_dijkstra.dir/bdsp.c.o
>> [ 42%] Building CXX object
>> src/bd_dijkstra/src/CMakeFiles/bd_dijkstra.dir/bdsp_core.cpp.o
>> [ 45%] Building CXX object
>> src/bd_dijkstra/src/CMakeFiles/bd_dijkstra.dir/BiDirDijkstra.cpp.o
>> [ 45%] Built target bd_dijkstra
>> Scanning dependencies of target bd_astar
>> [ 48%] Building C object
>> src/bd_astar/src/CMakeFiles/bd_astar.dir/bdastar.c.o
>> [ 51%] Building CXX object
>> src/bd_astar/src/CMakeFiles/bd_astar.dir/MinHeap.cpp.o
>> [ 54%] Building CXX object
>> src/bd_astar/src/CMakeFiles/bd_astar.dir/bdastar_core.cpp.o
>> [ 57%] Building CXX object
>> src/bd_astar/src/CMakeFiles/bd_astar.dir/BiDirAStar.cpp.o
>> [ 57%] Built target bd_astar
>> Scanning dependencies of target routing_bd
>> Linking CXX shared library lib/librouting_bd.so
>> [ 57%] Built target routing_bd
>> Scanning dependencies of target routing_tsp
>> [ 60%] Building C object src/tsp/src/CMakeFiles/routing_tsp.dir/tsp2.c.o
>> [ 62%] Building C object src/tsp/src/CMakeFiles/routing_tsp.dir/tsplib.c.o
>> Linking C shared library ../../../lib/librouting_tsp.so
>> [ 62%] Built target routing_tsp
>> Scanning dependencies of target routing_ksp
>> [ 65%] Building CXX object
>> src/ksp/src/CMakeFiles/routing_ksp.dir/BaseGraph.cpp.o
>> [ 68%] Building CXX object
>> src/ksp/src/CMakeFiles/routing_ksp.dir/BasePath.cpp.o
>> [ 71%] Building CXX object
>> src/ksp/src/CMakeFiles/routing_ksp.dir/DijkstraShortestPathAlg.cpp.o
>> [ 74%] Building CXX object
>> src/ksp/src/CMakeFiles/routing_ksp.dir/Graph.cpp.o
>> [ 77%] Building CXX object
>> src/ksp/src/CMakeFiles/routing_ksp.dir/HeaderTest.cpp.o
>> [ 80%] Building CXX object
>> src/ksp/src/CMakeFiles/routing_ksp.dir/YenTopKShortestPathsAlg.cpp.o
>> [ 82%] Building C object src/ksp/src/CMakeFiles/routing_ksp.dir/ksp.c.o
>> [ 85%] Building CXX object
>> src/ksp/src/CMakeFiles/routing_ksp.dir/KSPDriver.cpp.o
>> [ 88%] Building CXX object
>> src/ksp/src/CMakeFiles/routing_ksp.dir/KSPGraph.cpp.o
>> Linking CXX shared library ../../../lib/librouting_ksp.so
>> [ 88%] Built target routing_ksp
>> Scanning dependencies of target routing_dd
>> [ 91%] Building C object
>> src/driving_distance/src/CMakeFiles/routing_dd.dir/alpha.c.o
>> [ 94%] Building CXX object
>> src/driving_distance/src/CMakeFiles/routing_dd.dir/alpha_drivedist.cpp.o
>> [ 97%] Building CXX object
>> src/driving_distance/src/CMakeFiles/routing_dd.dir/boost_drivedist.cpp.o
>> [100%] Building C object
>> src/driving_distance/src/CMakeFiles/routing_dd.dir/drivedist.c.o
>> Linking CXX shared library ../../../lib/librouting_dd.so
>> [100%] Built target routing_dd
>> steve at lion:~/Documents/github/pgrouting/build$ sudo make install
>> [ 8%] Built target trsp
>> [ 14%] Built target astar
>> [ 20%] Built target dijkstra
>> [ 25%] Built target kdijkstra
>> [ 31%] Built target apsp_johnson
>> [ 37%] Built target apsp_warshall
>> [ 37%] Built target routing
>> [ 45%] Built target bd_dijkstra
>> [ 57%] Built target bd_astar
>> [ 57%] Built target routing_bd
>> [ 62%] Built target routing_tsp
>> [ 88%] Built target routing_ksp
>> [100%] Built target routing_dd
>> Install the project...
>> -- Install configuration: ""
>> -- Installing: /usr/lib/postgresql/9.3/lib/librouting_bd.so
>> -- Installing: /usr/lib/postgresql/9.3/lib/librouting.so
>> -- Installing: /usr/share/postgresql/9.3/extension/pgrouting--2.0.0.sql
>> -- Installing: /usr/share/postgresql/9.3/extension/pgrouting.control
>> -- Installing: /usr/share/postgresql/9.3/extension/pgrouting_legacy.sql
>> -- Installing:
>> /usr/share/postgresql/9.3/contrib/pgrouting-2.0/pgrouting.sql
>> -- Installing:
>> /usr/share/postgresql/9.3/contrib/pgrouting-2.0/pgrouting.control
>> -- Installing:
>> /usr/share/postgresql/9.3/contrib/pgrouting-2.0/pgrouting_legacy.sql
>> -- Installing: /usr/share/postgresql/9.3/extension/pgrouting_dd_legacy.sql
>> -- Installing:
>> /usr/share/postgresql/9.3/contrib/pgrouting-2.0/pgrouting_dd_legacy.sql
>> -- Installing: /usr/lib/postgresql/9.3/lib/librouting_tsp.so
>> -- Installing: /usr/lib/postgresql/9.3/lib/librouting_ksp.so
>> -- Installing: /usr/lib/postgresql/9.3/lib/librouting_dd.so
>> -- Removed runtime path from
>> "/usr/lib/postgresql/9.3/lib/librouting_dd.so"
>>
>> Now I create extension:
>>
>> CREATE EXTENSION pgrouting;
>>
>> And get the following error (naturally, since librouting_dd is being
>> removed here at the end...):
>>
>> ERROR: could not load library
>> "/usr/lib/postgresql/9.3/lib/librouting_dd.so": libCGAL.so.10: cannot open
>> shared object file: No such file or directory
>> ********** Error **********
>>
>> ERROR: could not load library
>> "/usr/lib/postgresql/9.3/lib/librouting_dd.so": libCGAL.so.10: cannot open
>> shared object file: No such file or directory
>> SQL state: 58P01
>>
>> Any idea what I'm doing wrong?
>>
>> Best
>> Steve
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pgrouting-users/attachments/20131127/cd7d4bd9/attachment-0001.html>
More information about the Pgrouting-users
mailing list