[pgrouting-dev] Building TRSP branch

Daniel Kastl daniel at georepublic.de
Tue Jun 12 01:59:34 PDT 2012


Hi Steve,

There is a project called ELGIS, which provides "Geo software" packages for
Centos, Redhat and Fedora.
http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS

They also have pgRouting packages, but not with TRSP.
But you can look at the package .spec file, which describes what is
required (packages and patches) to compile and build the packages:
https://projects.argeo.org/elgis/svn/factory/trunk/rpmbuild/elgis/pgrouting/

I thought it could be helpful.

Daniel


On Tue, Jun 12, 2012 at 2:26 AM, Stephen Woodbridge <woodbri at swoodbridge.com
> wrote:

> On 6/11/2012 7:58 PM, Steve Horn wrote:
>
>> 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.
>>
>
> You probably need to google "centos cgal" and then add an appropriate
> repository to yum. I forget the exact way to do that.
>
>
>  I'm more familiar with apt get and adding repositories. Does yum work
>> similarly? Just curious and trying to learn. Thanks!
>>
>
> 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.
>
> -Steve
>
>  On Monday, June 11, 2012, Stephen Woodbridge wrote:
>>
>>    On 6/11/2012 3:41 PM, Steve Horn wrote:
>>
>>        Hello again :)
>>
>>        Trying to build and install the trsp branch on my CentOS linux box.
>>        (Using
>>        https://github.com/pgRouting/ pgrouting/wiki/Developer---
>>        Getting-Started
>>        <https://github.com/pgRouting/**pgrouting/wiki/Developer---**
>> Getting-Started<https://github.com/pgRouting/pgrouting/wiki/Developer---Getting-Started>
>> >
>>        as
>>        a baseline)
>>
>>        Here is where I'm at:
>>        # git clone https://github.com/pgRouting/ pgrouting.git
>>        <https://github.com/pgRouting/**pgrouting.git<https://github.com/pgRouting/pgrouting.git>
>> >
>>        # cd pgrouting
>>
>>        //Hack around installing GAUL
>>
>>        # cmake -DWITH_TSP=ON -DWITH_DD=ON .
>>        -- POSTGRESQL_EXECUTABLE is POSTGRESQL_EXECUTABLE-NOTFOUND
>>        -- Found PostgreSQL: /usr/include/postgresql/ include/server,
>>        /usr/pgsql-9.1/lib/libpq.so
>>        Boost headers were found here: /usr/include
>>        Output directory for libraries is set to /usr/pgsql-9.1/lib
>>        Installation directory for libraries is set to
>>        /usr/pgsql-9.1/lib and
>>        for SQL files is set to /usr/share/pgrouting
>>        Installation directory for libraries is set to /usr/pgsql-9.1/lib
>>        -- Configuring done
>>        -- Generating done
>>        -- Build files have been written to: /home/shorn/pgrouting
>>
>>        # make
>>        Linking CXX shared library ../../../lib/librouting_tsp.so
>>        */usr/bin/ld: cannot find -lgmp  //THIS APPEARS TO BE THE PROBLEM?*
>>        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
>>
>>        Can anyone help me understand the error "Cannot find -lgmp"?
>>
>>
>>    For TSP you need to instal GUAL and for DD you need the CGAL libraries.
>>
>>    Try:
>>
>>    yum search libcgal
>>    yum search cgal
>>
>>    You probably need the dev package also.
>>
>>    After you:
>>
>>    cd pgrouting
>>    git checkout trsp   ## switch to trsp branch
>>    git pull
>>    cmake -DWITH_TRSP=ON -DWITH_TSP=ON -DWITH_DD=ON .
>>
>>    -Steve
>>
>>    ______________________________ _________________
>>    pgrouting-dev mailing list
>>    pgrouting-dev at lists.osgeo.org
>>    http://lists.osgeo.org/ mailman/listinfo/pgrouting-dev
>>    <http://lists.osgeo.org/**mailman/listinfo/pgrouting-dev<http://lists.osgeo.org/mailman/listinfo/pgrouting-dev>
>> **>
>>
>>
>>
>> --
>> Steve Horn
>>
>>
>>
>> ______________________________**_________________
>> pgrouting-dev mailing list
>> pgrouting-dev at lists.osgeo.org
>> http://lists.osgeo.org/**mailman/listinfo/pgrouting-dev<http://lists.osgeo.org/mailman/listinfo/pgrouting-dev>
>>
>
> ______________________________**_________________
> pgrouting-dev mailing list
> pgrouting-dev at lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/pgrouting-dev<http://lists.osgeo.org/mailman/listinfo/pgrouting-dev>
>



-- 
Georepublic UG & Georepublic Japan
eMail: daniel.kastl at georepublic.de
Web: http://georepublic.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pgrouting-dev/attachments/20120612/edbd1e47/attachment-0001.html>


More information about the pgrouting-dev mailing list