I’m trying to compile MapServer 7 with:
But for some reason it complaining about pg_config not found, I usually use /usr/pgsql-10/bin/pg_config to compile software that need the same file but with MapServer 7 I can’t
Here my cmake :
cmake -DCMAKE_INSTALL_PREFIX=/opt \
How can I compile it with PostGis support?
I’ve added the 2 lines in the cmake but nothing to do, my file is in /usr/pgsql-10/lib/libpq.so maybe because I’m on centos 7
And yes I have PostgreSQL 10 / PostgreSQL 10 server and PostgreSQL 10 devel installed, there is no such PostgreSQL 10 server devel for centos 7
Those comes directly from the PostgreSQL download page:
postgresql-client libraries and client binaries
postgresql-server core database server
postgresql-contrib additional supplied modules
postgresql-devel libraries and headers for C language development
For the version that I use I need Proj6
I don’t really understand why I can compile other software correctly and MapServer no, I don’t even understand what should I put
this is the first error that appear,
Cmake Warning at cmake/FindPostgreSQL.cmake:21 (message)
Pg_config not found, will try some defaults
Call stacks (most recent call first):
and the second one is:
cMake error at CmakeLists.txt:73 (messages)
POSTGIS library/components/dependency could not be found.
- add cmake_prefix_path…
Call stack (most recent call firsts)
now it works with PostGis support.
I suppose that the problems was in the
I was using <path>:<path> without double quotes around the full string and you use double quotes and semicolons
to split the paths.
From: Jonas Lund Nielsen [mailto:[hidden email]]
Sent: 19 June 2019 10:11
To: Sebastiano Laini <[hidden email]>; '[hidden email]' <[hidden email]>
Subject: SV: [mapserver-users] Cannot compile mapserver 7 with postgis
I have had success compiling MapServer 7.4 on RHEL7 as noted below. I guess it should be somewhat similar to CentOS.
Just remove whatever Oracle-specific and other options you might not need. I don’t think MapServer has PostGIS as a direct build-dependency.
It is unclear to me from your post, whether you have a previous build working with an earlier version, and the problem just occurred with an update to proj 6?
So please bear in mind that this build was relying on proj 5.2 and gdal 2.4.
I have installed “postgresql11.x86_64”, “postgresql11-devel.x86_64” and “postgresql11-libs.x86_64” from the postgres yum repository:
yum install pgdg-redhat11-11-2.noarch.rpm (installs the repository, not the above three packages)
cmake3 -DINSTALL_LIB_DIR:PATH=/usr/lib64 \
Fra: mapserver-users <[hidden email]>
På vegne af Sebastiano Laini
Sendt: 18. juni 2019 15:24
Til: '[hidden email]' <[hidden email]>
Emne: [mapserver-users] Cannot compile mapserver 7 with postgis