Installation problems

Jean Seyral jean.seyral at LAPOSTE.NET
Tue Dec 21 06:25:07 EST 2004


Hello !!!
I have some installation problems with mapserver.
I try to install mapserver-4.4.0 on freeBSD-5.3, using php-4.3.
10 and a postgres database (postgresql-7.4.6 and postgis-0.9.
0_1).
First i tried with the "portinstall mapserver" command
but i had an error with the pdflib library :
The library pdflib-6.0.1 is already installed (i can see it when
i run "pkg_info") but it doesn't detect it during the
installation.
This is the message displayed at the beginning of mapserver
installation:
"[...]
===> Patching for mapserver-4.4.0
===> Applying FreeBSD patches for mapserver-4.4.0
===> mapserver-4.4.0 depends on executable: php-config - found
===> mapserver-4.4.0 depends on executable: gmake - found
===> mapserver-4.4.0 depends on shared library: gd.4 - found
===> mapserver-4.4.0 depends on shared library: proj.5 - found
===> mapserver-4.4.0 depends on shared library: ming.3 - found
===> MAPSERVER-4.4.0 DEPENDS ON SHARED LIBRARY: pdf.6 - NOT
FOUND
===> Verifying install for pdf.6 in /usr/ports/print/pdflib
===> Vulnerability check disabled, database not found
===> Extracting for pdflib-6.0.1
=> Checksum OK for PDFlib-Lite-6.0.1.tar.gz.
===> Patching for pdflib-6.0.1
===> pdflib-6.0.1 depends on executable: gmake - found
===> pdflib-6.0.1 depends on file: /usr/local/bin/libtool15 -
found
===> Configuring for pdflib-6.0.1
[...]"
and after the compilation of pdflib this is the message i have
"
[...]
===> Installing for pdflib-6.0.1
===> Generating temporary packing list
===> Checking if print/pdflib already installed
===> pdflib-6.0.1 is already installed
You may wish to ``make deinstall'' and install this port
again
by ``make reinstall'' to upgrade it properly.
If you really wish to overwrite the old port of print/
pdflib
without deleting it first, set the variable
"FORCE_PKG_REGISTER"
in your environment or the "make install" command line.
*** Error code 1

Stop in /usr/ports/print/pdflib.
*** Error code 1

Stop in /usr/ports/graphics/mapserver.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/
portinstall37847.0 make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
! graphics/mapserver (unknown build error)
---> Packages processed: 0 done, 0 ignored, 0 skipped and 1
failed "
If someone can help me about this problem.
If not, you can try to help me about this other problem :
As it didn't work, i tried to install map server by myself.
I ran the configuration script with this options:
./configure \
--with-tiff=/usr/ports/distfiles/PDFlib-Lite-6.0.1/libs/tiff \
--with-png \
--with-eppl \
--with-jpeg \
--with-threads \
--with-proj=/usr/local/lib \
--with-gdal=/usr/local/bin/gdal-config \
--with-php=/usr/local/include/php \
--with-gd=/usr/local/lib \
--with-postgis=/usr/local/pgsql/bin/pg_config \
--with-freetype=/usr/local/bin \
--without-pdf \
--with-ogr \
--with-curl-config=/usr/local/bin/curl-config \
--with-geos=/usr/local/bin/geos-config \
--with-wmsclient \
--with-wfs \
--with-wfs-client \
--with-httpd=/usr/local/sbin/httpd \
--with-php-regex-dir=/usr/ports/distfiles/php-4.3.10/regex
it works well but when i ran the "make" command i had this
error:

"[...]
gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -
DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR -
DUSE_WFS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG -
DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -
DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -
DUSE_PHP_REGEX-I/usr/ports/distfiles/php-4.3.10/regex/.. -
DUSE_POSTGIS -DUSE_THREAD -I/usr/local/lib -I/usr/local/lib
-I/usr/ports/distfiles/PDFlib-Lite-6.0.1/libs/tiff -I/usr/
local/include -I/usr/local/include -I/usr/local/include -I/
usr/local/include maperror.c -o maperror.o
In file included from maperror.c:40:
/usr/local/include/gdfonts.h:26: error: syntax error before
"gdFontPtr"
/usr/local/include/gdfonts.h:27: error: syntax error before
"gdFontGetSmall"
/usr/local/include/gdfonts.h:27: warning: type defaults to `int'
in declaration of `gdFontGetSmall'
/usr/local/include/gdfonts.h:27: warning: data definition has no
type or storage class
maperror.c: In function `msWebDebug':
maperror.c:533: warning: passing arg 1 of `ctime' from
incompatible pointer type
*** Error code 1

Stop in /usr/ports/distfiles/mapserver-4.4.0."
I'm waiting for your help please.
Jean



More information about the mapserver-users mailing list