Trying to manually build and install the gmp dependency for cgal..but I'm curious how you can install it through yum. The searches you provided do not turn up anything.<div><br></div><div>I'm more familiar with apt get and adding repositories. Does yum work similarly? Just curious and trying to learn. Thanks!<span></span><br>
<br>On Monday, June 11, 2012, Stephen Woodbridge wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 6/11/2012 3:41 PM, Steve Horn wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello again :)<br>
<br>
Trying to build and install the trsp branch on my CentOS linux box.<br>
(Using<br>
<a href="https://github.com/pgRouting/pgrouting/wiki/Developer---Getting-Started" target="_blank">https://github.com/pgRouting/<u></u>pgrouting/wiki/Developer---<u></u>Getting-Started</a> as<br>
a baseline)<br>
<br>
Here is where I'm at:<br>
# git clone <a href="https://github.com/pgRouting/pgrouting.git" target="_blank">https://github.com/pgRouting/<u></u>pgrouting.git</a><br>
# cd pgrouting<br>
<br>
//Hack around installing GAUL<br>
<br>
# cmake -DWITH_TSP=ON -DWITH_DD=ON .<br>
-- POSTGRESQL_EXECUTABLE is POSTGRESQL_EXECUTABLE-NOTFOUND<br>
-- Found PostgreSQL: /usr/include/postgresql/<u></u>include/server,<br>
/usr/pgsql-9.1/lib/libpq.so<br>
Boost headers were found here: /usr/include<br>
Output directory for libraries is set to /usr/pgsql-9.1/lib<br>
Installation directory for libraries is set to /usr/pgsql-9.1/lib and<br>
for SQL files is set to /usr/share/pgrouting<br>
Installation directory for libraries is set to /usr/pgsql-9.1/lib<br>
-- Configuring done<br>
-- Generating done<br>
-- Build files have been written to: /home/shorn/pgrouting<br>
<br>
# make<br>
Linking CXX shared library ../../../lib/librouting_tsp.so<br>
*/usr/bin/ld: cannot find -lgmp //THIS APPEARS TO BE THE PROBLEM?*<br>
collect2: ld returned 1 exit status<br>
make[2]: *** [lib/librouting_tsp.so] Error 1<br>
make[1]: *** [extra/tsp/src/CMakeFiles/<u></u>routing_tsp.dir/all] Error 2<br>
make: *** [all] Error 2<br>
<br>
Can anyone help me understand the error "Cannot find -lgmp"?<br>
</blockquote>
<br>
For TSP you need to instal GUAL and for DD you need the CGAL libraries.<br>
<br>
Try:<br>
<br>
yum search libcgal<br>
yum search cgal<br>
<br>
You probably need the dev package also.<br>
<br>
After you:<br>
<br>
cd pgrouting<br>
git checkout trsp ## switch to trsp branch<br>
git pull<br>
cmake -DWITH_TRSP=ON -DWITH_TSP=ON -DWITH_DD=ON .<br>
<br>
-Steve<br>
<br>
______________________________<u></u>_________________<br>
pgrouting-dev mailing list<br>
<a>pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-dev</a><br>
</blockquote></div><br><br>-- <br>Steve Horn<br><br>