[Mapserver-users] Problem to install MapServer
Frank Warmerdam
warmerdam at pobox.com
Fri Dec 12 08:26:48 PST 2003
Ricardo Sanabria Martínez wrote:
> Hello,
>
> I try to intall MapServer 3.6.5 and It show me this message error:
>
> $./configure --prefix=/usr/local/mapserver/
> --with-postgis=/usr/local/pgsql/src/bin/pg_config/pg_config
> --with-php=/root/php-4.3.2/
> configure does work fine! But make doesn't work
> $make
> .
> .
> .
>
> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -DUSE_POSTGIS -I/usr/include -I/usr/local/pgsql/include
> shp2img.c -o shp2img.o
> gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF
> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
> -DUSE_POSTGIS -I/usr/include -I/usr/local/pgsql/include
> shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz
> -ltiff -ljpeg -lfreetype -lpng -lz -ljpeg -L/usr/local/pgsql/lib
> -lpq -lm -o shp2img
> ./libmap.a(mapogr.o)(.eh_frame+0x11): referencia a
> `__gxx_personality_v0' sin definir
> collect2: ld devolvió el estado de salida 1
> make: *** [shp2img] Error 1
>
Richardo,
You are linking with C++ code, and need to include C++ runtime libraries.
I would suggested editing the Makefile, and changing "LD=gcc" to "LD=g++".
Good luck,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the MapServer-users
mailing list