[Mapserver-users] using perl: "can't locate mapscript.pm"

Dana Quinn dana at nextbus.com
Wed Feb 26 08:22:10 PST 2003


Pedro-
	The perl script needs to find your mapscript.pm -
so you need to tell the script where it is.  Your default
@INC doesn't have the location of the mapscript.pm in it.
One easy way to get the script to run is to put this
before your 'use mapscript' line:

use lib "/path/to/mapscript/directory";

then the script should be able to find mapscript.pm.

Dana

Pedro Salazar wrote:
> Greetings,
> 
> I would like to use perl to return my images (and more manipulation!)
> instead of using the mapserver default cgi. 
> 
> I created a test perl script, and I'm having problems on finding the
> mapscript module!!
> 
> use mapscript; // <----- HERE
> 
> "
> Can't locate mapscript.pm in @INC (@INC contains:
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at
> ./script.pl line 2.
> BEGIN failed--compilation aborted at ./script.pl line 2.
> "
> 
> Any help would be appreciated!!
> 
> thanks,
> Pedro Salazar.
> 


-- 

Dana Quinn, dana at nextbus.com
NextBus Information Systems
(510) 420-3117




More information about the MapServer-users mailing list