[pgrouting-users] Make pgrouting

Daniel Kastl daniel at georepublic.de
Thu Sep 3 07:07:35 PDT 2020


Hi Boris,

I can't say much about Redhat/CentOS, but I thought there should also be
packages available on those platforms.
On Debian/Ubuntu you can add the PostgreSQL maintained repositories and
always have access to the latest versions.
I haven't tried, but this might be also the case for CentOS:
https://www.postgresql.org/download/

This is just an example, something that showed up early in my search
results:
https://centos.pkgs.org/7/postgresql-12-x86_64/pgrouting_12-3.0.0-1.rhel7.x86_64.rpm.html
It lists required package names. And you can download the SRC package, open
it and look into the ".spec" file, which may look like this:

Summary: Routing functionality for PostGIS
Name: %{sname}_%{pgmajorversion}
Version: %{pgroutingmajorversion}.0
Release: 1%{dist}
License: GPLv2
Source0: https://github.com/pgRouting/%{sname}/archive/v%{version}.tar.gz
URL: https://pgrouting.org/
BuildRequires: gcc-c++
%if 0%{?rhel} && 0%{?rhel} == 7
BuildRequires: cmake3
# EPEL:
BuildRequires: boost169-devel
%else
BuildRequires: cmake => 2.8.8
BuildRequires: boost-devel >= 1.53
%endif
BuildRequires: postgresql%{pgmajorversion}-devel
BuildRequires: gmp-devel
Requires: postgis30_%{pgmajorversion} >= %{postgismajorversion}
Requires: postgresql%{pgmajorversion}

.... if you really want to build yourself.

Hope that helps,
Daniel

On Thu, Sep 3, 2020 at 10:41 PM Boris Hikin <boris.hikin at gmail.com> wrote:

> Thank you for your replay Daniel,
>
> Do you think it will be better to install it on debian or ubuntu ?
> I installing it on centos 7
>
>
>
> On Thu, 3 Sep 2020 at 16:28, Daniel Kastl <daniel at georepublic.de> wrote:
>
>> Hi Boris,
>>
>> Do you have all build dependencies installed?
>>
>> https://docs.pgrouting.org/latest/en/pgRouting-installation.html#dependencies
>>
>> In particular you may be missing the postgresql-server-dev-xx package as
>> it's named in Debian/Ubuntu.
>>
>> Looking at your error output it seems like you try to compile pgRouting
>> 2.4.
>> There are already much newer versions in the meanwhile, so you may better
>> try those.
>>
>> Best regards,
>> Daniel
>>
>>
>>
>>
>> On Thu, Sep 3, 2020 at 8:51 PM Boris Hikin <boris.hikin at gmail.com> wrote:
>>
>>> Hi i am getting error when i make pgrouting
>>>
>>>  [  0%] Built target ProcessSQLFiles
>>> [  0%] Built target build-time-sql-directory
>>> [  1%] Building C object
>>> src/withPoints/src/CMakeFiles/withPoints.dir/one_to_one_withPoints.c.o
>>> In file included from /usr/include/pgsql/server/c.h:53:0,
>>>                  from /usr/include/pgsql/server/postgres.h:47,
>>>                  from
>>> /root/pgrouting-2.4.0/src/withPoints/src/./../../common/src/postgres_connection.h:34,
>>>                  from
>>> /root/pgrouting-2.4.0/src/withPoints/src/one_to_one_withPoints.c:30:
>>> /usr/include/pgsql/server/pg_config.h:14:30: fatal error:
>>> pg_config_x86_64.h: No such file or directory
>>>  #include "pg_config_x86_64.h"
>>>                               ^
>>> compilation terminated.
>>> make[2]: ***
>>> [src/withPoints/src/CMakeFiles/withPoints.dir/one_to_one_withPoints.c.o]
>>> Error 1
>>> make[1]: *** [src/withPoints/src/CMakeFiles/withPoints.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>>
>>> do you know about this error ?
>>>
>>> Thank You
>>> Boris
>>> _______________________________________________
>>> Pgrouting-users mailing list
>>> Pgrouting-users at lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/pgrouting-users
>>
>>
>>
>> --
>> Georepublic UG & Georepublic Japan
>> eMail: daniel.kastl at georepublic.de
>> Web: https://georepublic.info
>>
>>
>>
>> _______________________________________________
>> Pgrouting-users mailing list
>> Pgrouting-users at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/pgrouting-users
>
> _______________________________________________
> Pgrouting-users mailing list
> Pgrouting-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pgrouting-users



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


More information about the Pgrouting-users mailing list