[mapserver-users] PERL MapScript

Kralidis,Tom [Ontario] Tom.Kralidis at ec.gc.ca
Tue May 19 15:44:45 PDT 2009


What does your code look like?  The following works for me:

#!/usr/bin/perl

use strict;
use warnings;
use mapscript;

my $map = new mapscript::mapObj('test.map');
$map->saveMapContext('out2.xml');

..Tom



-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org on behalf of Christopher Condit
Sent: Tue 19-May-09 17:23
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] PERL MapScript
 
Hi-
I'm trying to get up and running with PERL MapScript on Linux (CentOS 5,
MapServer 5.4 codebase). It seems to compile and install correctly but
when I attempt to open a MapFile I get the following error:

Can't locate auto/mapscript/mapObj/get.al in @INC (@INC contains:
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7
/usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7
/usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/5.8.8 .)

Has anyone else encountered this problem or know a solution?

Thanks,
-Chris

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list