These are just my personal notes for compiling mapserver with ming on debian unstable.
I put them here because maybe can help someone for understanding the procedure but you are advised to keep them just as suggestion and example because this works for me but it’s depending on my configuration and purposes I have.
I had already installed mapserver, php5 and all packages and libs needed, so my goal was compile mapserver with ming to have a mapserv cgi working for flash. At end I named it msming and put together with mapserv into /usr/lib/cgi-bin/ for avoid to uninstall debian mapserver (but obviously this is my choice).
I started installing ming from debian, ming lib are located in /usr/lib keep in mind
apt-get install libming0 libming-dev libming-util
but you also need to download the source ming 0.3.0 for compiling mapserver with at the end.
gdal was already installed but needed to be compiled –with_ming option so redo it! Here I use a quick trick to avoid boring compiling from source. I used debian source
for dependancies
apt-get build-dep libgdal1-1.3.1
and for source
apt-get source libgdal1-1.3.1 cd gdal1-1.3.1/debian
here modify the rules file and add –with-ming=/usr/lib after –with-geos \
after you can just compile as normally you do with debian source
dpkg-buildpackage -rfakeroot -uc -b dpkg -i pacchetto.deb libgdal1-1.3.1_1.3.1-6_i386.deb libgdal1-1.3.1-dev_1.3.1-6_i386.deb
You need also to download php5 source and configure it. I tried to do also here with debian source but mapserver ask for a config file that seems not present in debian source package so use the original source.
and at last you can compile mapserver with ming.
./configure --with-tiff --with-jpeg --with-png --with-threads --with-proj --with-postgis --with-pdf --with-mapscript --with-gdal --with-gd --with-freetype --with-ogr --with-wmsclient --with-wfs --with-wms --with-wfsclient --with-http --with-xpm=/usr/lib --with-php=../php5-5.1.4 --with-ming=../ming-0.3.0/src