[ELGIS] Building mapserver on CentOS 6

Hatzopoulos, Nikolaos hatzopou at chapman.edu
Mon Jul 11 15:04:56 EDT 2011

I think you need postgresql84-devel to be installed
not only the -libs

From: Pavel Iacovlev [iacovlev.pavel at gmail.com]
Sent: Monday, July 11, 2011 10:30 AM
To: Hatzopoulos, Nikolaos
Cc: el at lists.osgeo.org
Subject: Re: [ELGIS] Building mapserver on CentOS 6

Works fine on centos 5.6 for me, does not on centos 6. Locate shows an empty result even after updatedb.

yum reports the following:
Package postgresql-8.4.7-1.el6_0.1.x86_64 already installed and latest version
Package postgresql-libs-8.4.7-1.el6_0.1.x86_64 already installed and latest version
Package postgresql-server-8.4.7-1.el6_0.1.x86_64 already installed and latest version

Not sure whats packages are missing, also "find / | grep pgport" return no results.

On Mon, Jul 11, 2011 at 7:26 PM, Hatzopoulos, Nikolaos <hatzopou at chapman.edu<mailto:hatzopou at chapman.edu>> wrote:
see what the command will show:
locate libpgport

if it does not show anything try as root:

and again hit the command:
locate libpgport

if the library does not exist you need to install the postgre library somehow

my result are but I am on centos 5.6
locate libpgport


From: el-bounces at lists.osgeo.org<mailto:el-bounces at lists.osgeo.org> [el-bounces at lists.osgeo.org<mailto:el-bounces at lists.osgeo.org>] on behalf of Pavel Iacovlev [iacovlev.pavel at gmail.com<mailto:iacovlev.pavel at gmail.com>]
Sent: Monday, July 11, 2011 3:33 AM
To: el at lists.osgeo.org<mailto:el at lists.osgeo.org>
Subject: [ELGIS] Building mapserver on CentOS 6

RHEL 6, CentOS 6, EPEL 6 is out , any ETA/plans on ELGIS 6 ?

Meanwhile trying to build Mapserver 5.6.6 from ELGIS 5 spec on CentOS 6 I get the following error:
/usr/bin/ld: cannot find -lpgport
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1

Searching about the error did not help much, as I understand I am missing pgport library, I checked if postgresql-devel is installed and it is.
Any ideas on the error ?

More information about the el mailing list