[Mapserver-users] php & php mapscript
phtran at nosc.mil
phtran at nosc.mil
Fri Aug 15 16:25:38 PDT 2003
Hello,
I am hoping to use maplab. However, I am having trouble with installing
php & php mapscript.
If anyone sees what's wrong with my configuration, please let me know.
Thank you very much in advance.
>From my php-4.3.2 directory, I am configuring php as follows:
(I am under the assumption that I need to build PHP as a CGI in order to
work with Mapcript.
Actually, I did try to build PHP as DSO but I failed at building Mapserver
(mapscript).)
#!/bin/sh
./configure --prefix=/usr1/php \
--enable-force-cgi-redirect \
--with-regex=system \
--with-gd \
--with-jpeg-dir=/usr1/libjpeg \
--with-png-dir=/usr1/libpng \
--with-zlib-dir=/usr1/zlib-1.1.3 \
--with-ttf \
--enable-gd-native-ttf
then make, then make install
>From mapserver-4.0
I configure as follows
#!/bin/csh
./configure --prefix=/usr1/mapserver \
--with-gd=/usr1/gdlib \
--enable-force-freetype1 \
--with-jpeg=/usr1/libjpeg \
--with-zlib=/usr1/zlib-1.1.3 \
--with-png=/usr1/libpng \
--without-tiff \
--with-freetype=/usr1/freetype \
--with-php=/usr1/php-4.3.2
make
failed to link mapscript with the following errors:
Script/php3; make; cd ../..
c++ -shared -o php_mapscript.so php_mapscript_util.o php_mapscript.o
mapscript_i.o -L/usr1/mapserver-4.0 -lmap
-L/usr1/libjpeg/lib -ljpeg -L/usr1/freetype/lib -lfreetype -lz
-L/usr1/libpng/lib -lpng -lz -lXpm -lX11
-L/usr1/gdlib/lib -lgd -L/usr1/libjpeg/lib -ljpeg -L/usr1/freetype/lib
-lfreetype -lz -L/usr1/libpng/lib -lpng -
lz -lXpm -lX11 -L/usr1/libjpeg/lib -ljpeg -lm
*** Error code 1
*** Error code 1
cos 0x55f0 /usr1/mapserver-4.0
/libmap.a(mapgd.o)
cos 0x5610 /usr1/mapserver-4.0
/libmap.a(mapgd.o)
cos 0x9468 /usr1/mapserver-4.0
/libmap.a(mapgd.o)
cos 0x11a4 /usr1/mapserver-4.0
/libmap.a(mapimagemap.o)
ld: fatal: relocations remain against allocatable but non-writable sections
make: Fatal error: Command failed for target `php_mapscript.so'
Current working directory /usr1/mapserver-4.0/mapscript/php3
make: Fatal error: Command failed for target `php3_mapscript'
-----------------------------
More information about the MapServer-users
mailing list