[mapserver-users] Perl/Mapscript Summary

Paul Ramsey pramsey at refractions.net
Fri Oct 5 13:50:40 EDT 2001


If you are having trouble with Perl/Mapscript (as I was) here is the
summary of things you will need to know:

- To build it from the CVS tree, you need to first copy the 
  mapscript.i file into the perl directory. Then use the 'swig' 
  program thusly: 'swig -shadow -perl5 mapscript.i'. Ignore the 
  warnings. This will generate the mapscript_wrap.c file. Then do 
  the usual perl compilation: perl Makfile.PL ; make ; make install

- Note that you *cannot* use the 1.3.x recent development versions 
  of SWIG to do this, or you will get funny results later on. 
  Use the "stable" version, 'SWIG Version 1.1 (Build 883)'

Follow the directions above and all will be sweetness and light.

-- 
      __
     /
     | Paul Ramsey
     | Refractions Research
     | Email: pramsey at refractions.net
     | Phone: (250) 885-0632
     \_



More information about the mapserver-users mailing list