[pgrouting-users] Make pgrouting

Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[pgrouting-users] Make pgrouting

Boris Hikin
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
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pgrouting-users
Reply | Threaded
Open this post in threaded view
|

Re: [pgrouting-users] Make pgrouting

dkastl
Hi Boris,

Do you have all build dependencies installed?

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 <[hidden email]> 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
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pgrouting-users


--
Georepublic UG & Georepublic Japan
eMail: [hidden email]
Web: https://georepublic.info




_______________________________________________
Pgrouting-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pgrouting-users
Reply | Threaded
Open this post in threaded view
|

Re: [pgrouting-users] Make pgrouting

Boris Hikin
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 <[hidden email]> wrote:
Hi Boris,

Do you have all build dependencies installed?

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 <[hidden email]> 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
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pgrouting-users


--
Georepublic UG & Georepublic Japan
eMail: [hidden email]
Web: https://georepublic.info



_______________________________________________
Pgrouting-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pgrouting-users

_______________________________________________
Pgrouting-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pgrouting-users
Reply | Threaded
Open this post in threaded view
|

Re: [pgrouting-users] Make pgrouting

dkastl
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:
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: <a href="https://github.com/pgRouting/%{sname}/archive/v%{version}.tar.gz">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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Boris,

Do you have all build dependencies installed?

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 <[hidden email]> 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
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pgrouting-users


--
Georepublic UG & Georepublic Japan
eMail: [hidden email]
Web: https://georepublic.info



_______________________________________________
Pgrouting-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pgrouting-users
_______________________________________________
Pgrouting-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pgrouting-users


--
Georepublic UG & Georepublic Japan
eMail: [hidden email]
Web: https://georepublic.info




_______________________________________________
Pgrouting-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pgrouting-users
Reply | Threaded
Open this post in threaded view
|

Re: [pgrouting-users] Make pgrouting

Boris Hikin
Thank you, I will try it.

On Thu, 3 Sep 2020 at 17:07, Daniel Kastl <[hidden email]> wrote:
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:
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: <a href="https://github.com/pgRouting/%%7Bsname%7D/archive/v%%7Bversion%7D.tar.gz" target="_blank">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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Boris,

Do you have all build dependencies installed?

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 <[hidden email]> 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
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pgrouting-users


--
Georepublic UG & Georepublic Japan
eMail: [hidden email]
Web: https://georepublic.info



_______________________________________________
Pgrouting-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pgrouting-users
_______________________________________________
Pgrouting-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pgrouting-users


--
Georepublic UG & Georepublic Japan
eMail: [hidden email]
Web: https://georepublic.info



_______________________________________________
Pgrouting-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pgrouting-users

_______________________________________________
Pgrouting-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pgrouting-users