[Mapserver-users] Re: mapscript seems to be fubar
pkishor_98 <pkishor@geoanalytics.com>
pkishor at geoanalytics.com
Fri Jan 24 07:12:25 PST 2003
And you are so right. That change made all the fog clear away.
Might I suggest that dump.pl and shpinfo.pl be modified accordingly in
the distro?
Many thanks.
--- In mapserver-users at yahoogroups.com, "Steve Lime" <steve.lime at d...>
wrote:
> I thought Dan quoted me in the 3.6.4 announcement, but perhaps not.
> Anyway, 3.6.4 was SWIGed with the latest version. Consequently there is
> a small, but important, modification you must make to scripts. All
> references to constructors must be updated. So:
>
> $map = new mapObj(...);
>
> becomes:
>
> $map = new mapscript::mapObj(...);
>
> This brings the perl module inline with the other SWIG modules. So
> basically it's a namespace issue. Make that change and you should be
> good to go.
>
> Steve
>
> Stephen Lime
> Data & Applications Manager
>
> Minnesota DNR
> 500 Lafayette Road
> St. Paul, MN 55155
> 651-297-2937
> >>> "pkishor_98 <pkishor at g...>" <pkishor at g...>
> 01/23/03 23:27 PM >>>
> Steve L, Lowell, others,
>
> I seem to have fubar-ed my perfectly working copy of mapscript, and
> can't figure out how to set it right.
>
> I rebuilt mapserver 3.6.4. Straight, no frills --
>
>
>
> ./configure --with-jpeg --with-gd=../gd-1.8.4 --with-png=/usr/local/lib
>
>
>
>
>
>
> Got the usualy slew of messages and warnings and what-not, and then
> mapserv is built just fine --
>
>
>
> [lucknow:~/Projects/mapserver/mapserver-3.6.4] pkishor% ./mapserv -v
> MapServer version 3.6.4 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE
>
>
>
>
> Then I do the perl Makefile.PL, make, sudo make install dance, and
> mapscript.pm gets built and installed in its correct place. But
> nothing works with perl. Trying out the simplest dump.pl, I get
>
>
>
> [lucknow:mapscript/perl/examples] pkishor% ./dump.pl -file=~/dap.shp
> Can't locate object method "new" via package "shapefileObj" at
> ./dump.pl line 18.
>
>
>
> and so on. When I turn diagnostics on, I get --
>
>
>
> [lucknow:mapscript/perl/examples] pkishor% ./dump.pl
> -file=~/Sites/palatine/data/dap.shp
> Can't locate object method "new" via package "shapefileObj" at
> ./dump.pl line
> 19 (#1)
>
> (F) You said to do (or require, or use) a file that couldn't be
> found. Perl looks for the file in all the locations mentioned in
> @INC,
> unless the file name included the full path to the file. Perhaps
> you need
> to set the PERL5LIB or PERL5OPT environment variable to say where
> the extra
> library is, or maybe the script needs to add the library name to
> @INC. Or
> maybe you just misspelled the name of the file. See
> perlfunc/require
> and lib.
>
> Uncaught exception from user code:
> Can't locate object method "new" via package "shapefileObj" at
> ./dump.pl line 19.
>
>
>
>
> I know that mapscript.pm is in my @INC which is --
>
> /System/Library/Perl/darwin
> /System/Library/Perl
> /Library/Perl/darwin
> /Library/Perl
> /Library/Perl
> /Network/Library/Perl/darwin
> /Network/Library/Perl
> /Network/Library/Perl
>
>
>
> because make install put it there --
>
> [lucknow:mapserver-3.6.4/mapscript/perl] pkishor% sudo make install
> Password:
> Installing /Library/Perl/darwin/auto/mapscript/mapscript.bs
> Installing /Library/Perl/darwin/auto/mapscript/mapscript.bundle
> Files found in blib/arch: installing files in blib/lib into
> architecture dependent library tree
> Installing /Library/Perl/darwin/mapscript.pm
> Writing /Library/Perl/darwin/auto/mapscript/.packlist
> Appending installation info to /System/Library/Perl/darwin/perllocal.pod
>
> I am at a dead end. Any suggestions as to where I should begin looking
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at l...
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at l...
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list