Swig and Perl - problem?
Tyler Mitchell
tylermitchell at SHAW.CA
Thu Jan 13 22:01:14 PST 2005
I'm stuck on using Perl mapscript to draw a map.
I've compiled perl mapscript and the example scripts included in the source
work. But with my example below, I can't get it to draw the map image. Any
ideas?
-------------
# map1.pl
# Perl MapScript Example 1
use mapscript;
# Set the map file to use
$mapfile = "mapfiles/global.map";
# Create a mapObj, initialized with the mapfile above
$mapobject = new mapscript::mapObj($mapfile);
# Create an imgObj that has an image of the map
$mapimage = $mapobject->{draw};
...
--------------------
I get this error, and don't have the slightest clue what it means:
Can't locate auto/mapscript/mapObj/swig_draw_g.al in @INC (@INC
contains: /usr/lib/perl5/5.8.3/i586-linux-thread-multi /usr/lib/perl5/5.8.3 /usr/lib/perl5/site_perl/5.8.3/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.3/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl .)
at /usr/lib/perl5/site_perl/5.8.3/i586-linux-thread-multi/mapscript.pm line
29
More information about the MapServer-users
mailing list