Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I try to make pgrouting. What am I doing wrong?

anton@anton-P4I45Gx-PE:~/src/pgrouting$ cmake -DWITH_TSP=ON -DWITH_DD=ON .
-- POSTGRESQL_EXECUTABLE is POSTGRESQL_EXECUTABLE-NOTFOUND
-- Found PostgreSQL: /usr/include/postgresql/8.4/server, /usr/lib/libpq.so
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/pgrouting
Installation directory for libraries is set to /usr/lib/postgresql/8.4/lib
-- Configuring done
-- Generating done
-- Build files have been written to: /home/anton/src/pgrouting
anton@anton-P4I45Gx-PE:~/src/pgrouting$ make
Linking CXX shared library ../../../lib/librouting_tsp.so
/usr/bin/ld: cannot find -lgmp
collect2: ld returned 1 exit status
make[2]: *** [lib/librouting_tsp.so] Error 1
make[1]: *** [extra/tsp/src/CMakeFiles/routing_tsp.dir/all] Error 2
make: *** [all] Error 2    
share|improve this question

migrated from gis.stackexchange.com Aug 6 '11 at 13:08

This question came from our site for cartographers, geographers and GIS professionals.

    
Welcome to gis.stackexchange. This question is only remotely connected to the GIS topic of this site. It really is more about how to build a software package. Therefore I'm migrating it to a more appropriate site. –  underdark Aug 6 '11 at 13:08

1 Answer 1

I'm guessing that this is a Debian or Ubuntu system, based on the file system layout, so I'd say

apt-get install libgmp-dev
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.