Was not able to find these libraries via package manager, but I did get pgRouting and dependencies installed manually.<div><br></div><div>The "cannot find -lgmp" referred to a dependency of CGAL that needed to be installed (
<a href="http://gmplib.org/manual/Installing-GMP.html#Installing-GMP">http://gmplib.org/manual/Installing-GMP.html#Installing-GMP</a> )</div><div><br></div><div>Also of note is that CGAL needs a specific version of the Boost libraries to work (1.41). </div>
<div>After successful pgRouting make/make install then I ran the driving_distance function to test and got this:</div><div><br></div><div>“Error while loading shared libraries: libboost_thread.so.1.41.0: cannot open shared object file: No such file or directory"</div>
<div><br></div><div>Used the information in this blog to correct that error:
<a href="http://somethingididnotknow.wordpress.com/2012/02/17/fix-the-error-while-loading-shared-libraries-libboost_thread-so-1-48-0-cannot-open-shared-object-file-no-such-file-or-directory-error/">http://somethingididnotknow.wordpress.com/2012/02/17/fix-the-error-while-loading-shared-libraries-libboost_thread-so-1-48-0-cannot-open-shared-object-file-no-such-file-or-directory-error/</a> </div>
<div><br></div><div>Hope this helps someone in the future.</div><div><br></div><div>Steve: Haven't done a deep dive into the TRSP functionality -but I am impressed at the surface. Does it use an A Star algorithm at the core?</div>
<div><br></div><div>Thanks for your efforts on this!<br><br><div class="gmail_quote">On Mon, Jun 11, 2012 at 8:26 PM, Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 6/11/2012 7:58 PM, Steve Horn wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Trying to manually build and install the gmp dependency for cgal..but<br>
I'm curious how you can install it through yum. The searches you<br>
provided do not turn up anything.<br>
</blockquote>
<br></div>
You probably need to google "centos cgal" and then add an appropriate repository to yum. I forget the exact way to do that.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm more familiar with apt get and adding repositories. Does yum work<br>
similarly? Just curious and trying to learn. Thanks!<br>
</blockquote>
<br></div>
Yes, yum is the CentOS equivalent to apt-get. They both work in similar ways. There were some good yum howto or tutorials that I learned from when I needed to use it that I found via google.<br>
<br>
-Steve<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
On Monday, June 11, 2012, Stephen Woodbridge wrote:<br>
<br>
On 6/11/2012 3:41 PM, Steve Horn wrote:<br>
<br>
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/" target="_blank">https://github.com/pgRouting/</a> pgrouting/wiki/Developer---<br>
Getting-Started<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>><br>
as<br>
a baseline)<br>
<br>
Here is where I'm at:<br>
# git clone <a href="https://github.com/pgRouting/" target="_blank">https://github.com/pgRouting/</a> pgrouting.git<br>
<<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/ 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<br>
/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></div></div>
make[1]: *** [extra/tsp/src/CMakeFiles/ routing_tsp.dir/all] Error 2<div><div class="h5"><br>
make: *** [all] Error 2<br>
<br>
Can anyone help me understand the error "Cannot find -lgmp"?<br>
<br>
<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>
______________________________ _________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/" target="_blank">http://lists.osgeo.org/</a> mailman/listinfo/pgrouting-dev<br>
<<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-dev</a><u></u>><br>
<br>
<br>
<br>
--<br>
Steve Horn<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">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>
</div></div></blockquote><div class="HOEnZb"><div class="h5">
<br>
______________________________<u></u>_________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Steve Horn<br><br>
</div>