HOWTO: Mr. SID support in MapServer 5
February 6th, 2008
To add support to images in mrsid format, a library developed by Lizardtech is needed. This is propietary software so I’ve cropped this part out of my main article on MapServer 5.
- GeoDSK
First of all we need GeoSDK from Lizardtech (You’ll be asked to register to be able to download it). The file comes in several flavours (different kernel, gcc, glibc and libstdc++ versions), the one that best suits us is the gcc 3.4 one [Geo_DSDK-6.0.7.1407.linux.x86.gcc34.tar.gz].
Current RHEL5 gcc version is 4.2 but there are compat packages for gcc-3.4. We need them:
rpm -i /mnt/cd2/Server/compat-gcc-34-3.4.6-4.i386.rpm /mnt/cd2/Server/compat-gcc
-34-c++-3.4.6-4.i386.rpmNow it’s time to untar GeoSDK to a suitable location:
tar xzvf Geo_DSDK-6.0.7.1407.linux.x86.gcc34.tar.gz -C /usr/local/This is a binary distribution so no more work is needed here.
- GDAL
Support is actually provided by GDAL library so we have to recompile it using our compat gcc and libstdc++ packages.
CC=gcc34 CXX=g++34 ./configure --with-png \
--with-libtiff \
--with-jpeg \
--with-gif \
--with-pg=/usr/local/pgsql/bin/pg_config \
--with-geos \
--with-odbc \
--with-mrsid=/usr/local/Geo_DSDK-6.0.7.1407/
make
make install
ldconfig
Done! Of course, you may refer to my main article on MapServer 5 for all the details.










