MS 4.10.1 php_mapscript build problem on FreeBSD 6.2
Ben Madin
ben at REMOTEINFORMATION.COM.AU
Tue Apr 17 17:47:11 PDT 2007
G'day all,
I have successfully built MapServer 4.10 on FreeBSD 6.2 (my first
attempt at UNIX building, so very excited although it didn't like the
flash support so I dropped it)
I realised however that I hadn't built the php-mapscript module,
which is my main interface for development, so back I went, and added
it to my config file (using Howard Butler's suggestion) to be :
./configure --with-freetype=/usr/local/bin \
--with-png=/usr/local/lib \
--with-jpeg=/usr/local \
--with-libiconv=/usr/local \
--with-geos=/usr/local/bin/geos-config \
--with-ogr=/usr/local/bin/gdal-config \
--with-gdal=/usr/local/bin/gdal-config \
--with-httpd=/usr/local/sbin/httpd \
--with-wfsclient \
--with-wmsclient \
--enable-debug \
--with-curl-config=/usr/local/bin/curl-config \
--with-proj=/usr/local \
--with-pdf=/usr/local \
--with-tiff=/usr/local \
--with-threads \
--with-fastcgi \
--with-wcs \
--with-postgis=/usr/local/database/bin/pg_config \
--with-php=/usr/local/include/php/ \
--with-xml2-config=/usr/bin/xml2-config # new in 4.10
So configure worked, a quick make clean and then off we go again,
until this... (I'm afraid I don't really understand what most of it
means)
g++ -g -O2 -fPIC -Wall -DENABLE_STDERR_DEBUG -
DNEED_NONBLOCKING_STDERR -DHAVE_VSNPRINTF -DUSE_EPPL -DUSE_PROJ -
DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF
-DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -
DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -
DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -
DUSE_POSTGIS -DUSE_THREAD -DUSE_ZLIB -I/usr/local/include -I/usr/
local/include -I/usr/local/include -I/usr/local/include -I/usr/local/
include -I/usr/local/include -I -I/usr/local/include -I/usr/
local/include -I/usr/local/include shp2img.o -L. -lmap -lgd -L/
usr/local/lib -lgd -L/usr/local/lib -ljpeg -L/usr/local/lib -Wl,--
rpath -Wl,/usr/local/lib -lfreetype -lz -L/usr/local/lib -lpng -lz -L/
usr/local/lib -lpdf -L/usr/local/lib64 -ltiff -L/usr/local/lib -ljpeg
-L/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -lfreetype -lz -L/usr/
local/lib -lpng -lz -L/usr/local/lib -lproj -L/usr/local/lib -ljpeg
-L/usr/local/lib -lgdal -L/usr/local/lib -lgeos -L/usr/local -L/usr/
local/lib -ljasper -lungif -lgeotiff -L/usr/local/lib -ltiff -L/usr/
local -L/usr/local/lib -lpng -L/usr/local/lib -lpq -lz -L/usr -L/usr/
lib -lm -L -lpq -L/usr/local/lib -lcurl -rpath=/usr/lib:/usr/local/
lib -lssl -lcrypto -lz -L/usr/local/lib -lgeos_c -lpthread -L/usr/
local/lib -liconv -lfcgi -lz -lm -lstdc++ -o shp2img
/usr/bin/ld: cannot find -lfcgi
*** Error code 1
Stop in /usr/local/mapserver-4.10.1.
So now it doesn't work. I don't understand the significance of -
lfcgi, or why it has become a problem now with the inclusion of the
--with-php flag.
My system includes :
Apache/2.2.4 (FreeBSD) Server built: Apr 10 2007 22:15:11
PHP 5.2.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 11 2007
09:33:50) (DEBUG) Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend
Technologies
GD 2.0.34
GDAL 1.3.1
PROJ 4.5.0
JPEG 6b
PNG 1.2.14
GEOS 2.2.3
PostGIS 1.2.1
freebsd# /usr/local/www/apache22/cgi-bin/mapserv -v
MapServer version 4.10.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT
SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE DEBUG=MSDEBUG
and my build directory is /usr/local/mapserver-4.10.1
I guess my first question has to be will php_mapscript work with php 5?
and then ... what is -lfcgi? (and how can I get it?)
cheers
Ben
--
Ben Madin
REMOTE INFORMATION
t : +61 8 9192 5455
f : +61 8 9192 5535
m : 0448 887 220
Broome WA 6725
ben at remoteinformation.com.au
Out here, it pays to know...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070418/ab909fdf/attachment.htm>
More information about the MapServer-users
mailing list