Mapscript & Perl 5.6

Stephen Lime steve.lime at dnr.state.mn.us
Tue Jun 13 15:18:55 EDT 2000


I have not tested it. The MapScript interface file (mapscript.i) probably needs to be re-SWIGed
with the new version of Perl. It may be that SWIG has not added any changes made to Perl
internals in 5.6. Only way to know would be to load the latest version of SWIG (www.swig.org), 
I think 1.3a2 is ok. I'll try this from home tonite, but feel free to try yourself. I'll try dropping a 
note to the SWIG mailing list to see if all is well.

BTW You did re-install mapscript with perl 5.6?

Steve

>>> "Doyon, Jean-Francois" <Jean-Francois.Doyon at CCRS.NRCan.gc.ca> 06/13/00 11:59AM >>>
Has mapscript been tested against perl 5.6 ? I just upgraded and am having a
problem :

Can't locate auto/colorObj/addColor.al in @INC (@INC contains:
/usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl .) at /home/httpd/cgi-bin/opengis line 104

This error is generated by the line :

$map->{imagecolor} = $map->addColor(0,0,255);

in my perl code.

Am I doing something wrong ? I've used other mapscript methods successfully,
like new mapObj and new rectObj, as well as using constants like
$mapscript::MS_METERS ... Looks like the problem is with that method
specifically ...

Oh, BTW, a $mapscript::MS_DEFAULT might be nice too ... Didn't see one
mentionned anywhere.

Thanks !

Jean-Francois Doyon
Internet Service Development and Systems Support
GeoAccess Division
Natural Resources Canada
(613) 992-4902





More information about the mapserver-users mailing list