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

Lowell Filak lfilak@medinaco.org
Sun, 02 Mar 2003 23:27:32 -0500


Any modification to the @INC is usually taken care of during the 'make install' portion of the mapscript compilation.
While compiling mapscript was 'make install' used?
Lowell F.

The following message was sent by Dana Quinn <dana@nextbus.com> on Wed, 26 Feb 2003 08:22:10 -0800.

> 
> 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@nextbus.com
> NextBus Information Systems
> (510) 420-3117
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users@lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users