[Mapserver-users] Can't locate 'new' method of mapObj
krung
krung at cad.go.th
Mon Feb 17 11:03:43 PST 2003
Hi all,
I compiled perl mapscript (mapserver 3.6.4) on RH7.2. When I ran a simple script, it showed the error message below:
Can't locate object method 'new' via package 'mapObj' (Perhaps you forgot to load 'mapObj'?) at ./testgis.pl line 4
# code
use mapscript;
$ENV{MS_ERRORFILE}="mapserver.log";
my $map = new mapObj("test.map")or die 'Couldn't open map file";
$img = $map->draw();
$img = saveImage("test.png",$mapscript::MS_PNG,1,1,1);
$img->free();
undef $map;
No error file created. What I did wrong? Any special to compile mapserver-3.6.4 than mapserver-3.6.3.
Thank you in advance,
Krung.
More information about the MapServer-users
mailing list