[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[DebianGIS] Fwd: [UMN_MAPSERVER-USERS] PHP Mapscript on Debian GNU/Linux Sarge

Does this help packaging the new Maserver with php_mapscript?
All the best.

----------  Forwarded message  ----------

Subject: [UMN_MAPSERVER-USERS] PHP Mapscript  on Debian GNU/Linux Sarge
Date: 09:01, martedì 02 agosto 2005
From: Paul Scott <pscott@uwc.ac.za>
To: MAPSERVER-USERS@lists.umn.edu

I have just finished compiling php mapscript for Debian gnu/linux from
the stock apt sources and debian packages.

In order to compile php mapscript properly, using PHP's Regex, do the

apt-get -s build-dep php4 > builddep-php4-packages
apt-get -s build-dep mapserver > builddep-mapserver-packages
apt-get build-dep php4
apt-get build-dep mapserver
apt-get install fakeroot
apt-get install dpkg-dev
apt-get install php4-dev

apt-get source php4
cd php4-4.3.10
fakeroot dpkg-buildpackage

cp apache-build/regex/.libs/*.o regex/

apt-get source mapserver
cd mapserver-4.4.1
fakeroot dpkg-buildpackage

fgrep ./configure config.log > conf.new

Edit the "conf.new" file to remove the leading "$" sign, and add the
 following configure options to the end of the line:




strip --strip-unneeded mapscript/php3/php_mapscript.so
cp mapscript/php3/php_mapscript.so /usr/lib/php4/20020429/

All thats left is to test:


Thought someone else may benefit from this...



Paolo Cavallini
cavallini@faunalia.it   www.faunalia.it   www.faunalia.com
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy   Tel: (+39)348-3801953

Reply to: