Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

anton@anton-P4I45Gx-PE:~/src/pgrouting$ cmake -DWITH_TSP=ON -DWITH_DD=ON .
-- Found PostgreSQL: /usr/include/postgresql/8.4/server, /usr/lib/
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/
/usr/bin/ld: cannot find -lgmp
collect2: ld returned 1 exit status
make[2]: *** [lib/] Error 1
make[1]: *** [extra/tsp/src/CMakeFiles/routing_tsp.dir/all] Error 2
make: *** [all] Error 2    
share|improve this question

migrated from 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

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

You must log in to answer this question.