[mapserver-users] Mapserver 7.6.2

Eichner, Andreas - SID Andreas.Eichner at sid.sachsen.de
Wed Jan 6 10:02:44 PST 2021


Hallo,

I'm still not sure what you're trying to achieve. I took a freshly installed RHEL7 maschine and did a simple installation with basically all packages from the repos and MapServer compiles just fine. This is what I did:

* enable the SCL, EPEL and the repo from postgresql.org:
yum install -y https://ftp.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
cat <<EOF > /etc/yum.repos.d/sclo-rh.repo
# this is quick'n'dirty to use CentOS-SCLo on RHEL
[sclo-rh]
name=SCLo RH
baseurl=http://mirror.centos.org/centos/7/sclo/x86_64/rh/
enabled=1
gpgcheck=0
EOF

* grab cmake and MapServer from the web and unpack
wget https://download.osgeo.org/mapserver/mapserver-7.6.2.tar.gz && tar xzf mapserver-7.6.2.tar.gz
wget https://github.com/Kitware/CMake/releases/download/v3.19.2/cmake-3.19.2-Linux-x86_64.tar.gz && tar xzf cmake-3.19.2-Linux-x86_64.tar.gz
export PATH=$(pwd)/cmake-3.19.2-Linux-x86_64/bin:$PATH

* install additional build dependencies:
yum install -y gcc-c++ proj72-devel gdal32-devel libxml2-devel libcurl-devel postgis31_12-devel geos39-devel cairo-devel harfbuzz-devel fribidi-devel libjpeg-turbo-devel postgresql12-devel

* create and got into the build directory
mkdir mapserver-7.6.2/build && cd mapserver-7.6.2/build

* configure with cmake
cmake -Wno-dev -DCMAKE_PREFIX_PATH="/usr/proj72/;/usr/pgsql-12/;/usr/gdal32;/usr/geos39/" -DWITH_GIF=0 -DWITH_FCGI=0 -DWITH_PROTOBUFC=0 -DWITH_CLIENT_WMS=1 -DWITH_CLIENT_WFS=1 -DWITH_KML=1 -DWITH_SOS=1 -DCMAKE_BUILD_TYPE=Release ..

* and build
make

You might try to reprocude this and start from that.

HTH

-----Ursprüngliche Nachricht-----
Von: Stephane Poissant <spoissantca at gmail.com> 
Gesendet: Mittwoch, 6. Januar 2021 14:41
An: Eichner, Andreas - SID <Andreas.Eichner at sid.sachsen.de>
Cc: mapServer-users <mapserver-users at lists.osgeo.org>; Jeff McKenna <jmckenna at gatewaygeomatics.com>
Betreff: Re: Mapserver 7.6.2

I’ll give a try to 1.70 (compile)
The reason is that I cannot use 1.53 as it does not compile for the previously mentioned error with boost.
Even if I install (from repo) boost169) it installs almost everything but not de -devel has it breaks dependancies.
So using 1.75 was my first test. I am now trying 1.70. Fingers crossed it will work.

Would you have a specific version recommendation for the software stack?
(Without compilation)?

In any cases, I have to go with what I have in the repos available. 
I’ve been trying for quite sometime to find the right combination without success. Your input would be
Helpful to me.

Regards,
SP



Stéphane Poissant  
spoissantca at gmail.com <mailto:spoissantca at gmail.com> 


	On Jan 6, 2021, at 1:54 AM, Eichner, Andreas - SID <Andreas.Eichner at sid.sachsen.de <mailto:Andreas.Eichner at sid.sachsen.de> > wrote:

	Good morning,
	
	//opt/boost/lib/libboost_serialization.so.1.75.0: undefined reference to `std::uncaught_exceptions()@GLIBCXX_3.4.22'
	collect2: error: ld returned 1 exit status
	
	it seems that libboost_serialization is build against a different (newer) libstdc++  as is used during the MapServer build. 
	I'd suggest to use the distribution provided boost libraries (v1.53) and the system's default compiler packages (wich includes libstdc++).
	
	HTH
	




More information about the mapserver-users mailing list