mapserver 4.2.2 compile problem on redhat as3

Daryl Herzmann akrherz at IASTATE.EDU
Fri Aug 13 03:41:16 EDT 2004


Hi Aaron,

On Fri, 13 Aug 2004, Aaron Steele wrote:

>dear readers,
>
>i'm running redhat enterprise as3 and cannot compile mapserver 4.2.2:
>
> > ./configure
>--with-wfs
>--with-wmsclient
>--with-wfsclient
>--with-proj=/usr/local/proj-4.4.8
>--with-gdal=/usr/local/gdal-1.2.1/apps/gdal-config
>--with-postgis=/usr/local/postgresql-7.4.3/contrib/postgis-0.8.2
>--with-ogr=/usr/local/gdal-1.2.1/apps/gdal-config

I am not sure that your --with-postgis is correct.  I think it should
point to the location of pg_config, for example

--with-postgis=/usr/local/postgresql-7.4.3/bin/pg_config

If pg_config is not found, you wind up with a blank include in the
Makefile and hence this error

gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
-DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR
-DUSE_WFS_LYR     -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT
-DGD_HAS_GDIMAGEGIFPTR   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS
-I/usr/local/include  -I/usr/local/proj-4.4.8/src
-I/usr/local/gdal-1.2.1/port -I/usr/local/gdal-1.2.1/gcore
-I/usr/local/gdal-1.2.1/alg -I/usr/local/gdal-1.2.1/ogr
-I/usr/local/gdal-1.2.1/ogr/ogrsf_frmts -I     maptemplate.c -o
maptemplate.o
gcc: no input files
make: *** [maptemplate.o] Error 1


Notice the blank after the last '-I'

HTH,
 daryl



More information about the mapserver-users mailing list