[Mapserver-users] mapscript perl help

Eric Bridger eric at gomoos.org
Tue Aug 19 12:06:44 EDT 2003


You could put this at the beginning of your script to see any error
messages from mapserver:
$ENV{MS_ERRORFILE} = '/full/path/to/mapserver.log';

That will report any errors in your map file.

Also, try setting $file to the full path to your map file, just to be
sure mapscript is finding it.


On Mon, 2003-08-18 at 17:41, michael j pan wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> i've installed the latest version (4.0) and am trying to run the example 
> for mapscript perl in the documentation.  however, all i get is this error
> 
> Unable to open mapfile test.map. at ./map.pl line 7.
> 
> which corresponds to this line.
> 
> my $map = new mapscript::mapObj($file) or die("Unable to open mapfile 
> $file."); 
> 
> im pretty sure that there's nothing wrong with the mapfile.  any 
> suggestions or other test mapfiles appreciated.
> 
> thx
> 
> - -- 
> michael j pan
> nasa jet propulsion laboratory
> 4800 oak grove drive 300-320a
> pasadena ca 91109
> 818 393 5031
> 
> ****************************************
>    this message is digitally signed.
>  you can use the public key located at
> http://sweet.jpl.nasa.gov/~mjpan/gpg.asc
>      to verify its authenticity.
> ****************************************
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)
> Comment: Made with pgp4pine 1.76
> 
> iD8DBQE/QQ+8RdNkoLZ1yFQRAs6OAJ9aSMCS0r34dAQOzfg7SEoG4OFKDQCgrzue
> Ce2MFyeWHgvyKyL/JFivFe0=
> =Zanm
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 





More information about the mapserver-users mailing list