[mapserver-users] compiling PHP/Mapscript on Redhat 7.1

Jakob Worm jaw at mail.dk
Thu Jul 19 17:47:53 EDT 2001


Hi,

I thought i'd probably be the same story as with RH6.2 so I did as told here: 
http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_redhat.html

It wortks out fine till i do this:

# ./configure --with-proj --with-php=../php-4.0.4pl1

This also seems to be alright till this apears:

-------------------------
----- IMPORTANT !!! -----
-------------------------
To use PHP extensions on your OS, you will need to recompile
PHP.
You need to edit the Makefile in the php3 directory and add
-des-Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc -Dcccdlflags=-fPIC 
-Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dd_dosuid 
-Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm 
-Uuselargefiles
-rdynamic to the start of the LDFLAGS line at the top
of the Makefile.  Then type: 'make clean; make'
You can still go ahead and build the extensions now by typing
'make' in this directory.  They just won't work correctly
until you recompile your PHP.
If you are compiling php as a module, you should also add
-des-Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc -Dcccdlflags=-fPIC 
-Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dd_dosuid 
-Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm 
-Uuselargefiles
-rdynamic to the start of the EXTRA_LDFLAGS in Apache
Configuration file.  Note that if you are using the APACI
build mechanism you should make this change in the
Configuration.tmpl file instead.
-------------------------
-------------------------
-------------------------
checking for location of config.h or php_config.h... 
/root/mapserver/../php-4.0.4pl1/main/php_config.h
checking whether we have PHP3 or PHP4... -DPHP4
checking whether we should use PHP's regex... no
checking whether PHP4 was compiled with TTF support... no
        PHP/MapScript module configured.
creating ./config.status
creating Makefile
sed: file conftest.s1 line 74: Unterminated `s' command
creating gdft/Makefile
sed: file conftest.s1 line 74: Unterminated `s' command
creating mapscript/php3/Makefile
sed: file conftest.s1 line 74: Unterminated `s' command[

The Makefiles are empty so doing what's told doesn't make sense. I'v tried to 
compile without php which works fine, but that also not what i want :(

Thanks for helping me.

/jakob



More information about the mapserver-users mailing list