Need Help with XML::Parser

Need Help with XML::Parser

am 05.07.2005 21:53:14 von Marv

Running Perl 5.6.0 on AIX 5.1, Have installed Expat and XML::Parser
modules and run make test successfully, still get the following error
whenever I try use "use XML::Parser" even though Parser.pm is present.
Greatly appreciate any advice on how to procede (not a guru by any
stretch):

Can't locate XML/Parser.pm in @INC (@INC contains:
/usr/opt/perl5/lib/5.6.0/aix /usr/opt/perl5/lib/5.
6.0 /usr/opt/perl5/lib/site_perl/5.6.0/aix
/usr/opt/perl5/lib/site_perl/5.6.0 /usr/opt/perl5/lib/site
_perl .) at /afs/btv.ibm.com/u1/marv/RVSI/prebumpg852upixmap.pl line 7.
BEGIN failed--compilation aborted at
/afs/btv.ibm.com/u1/marv/RVSI/prebumpg852upixmap.pl line 7.

Results of make are:

$ make
cc -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -q3
2 -D_LARGE_FILES -qlonglong -O -DVERSION=\"2.34\"
-DXS_VERSION=\"2.34\" -
I/usr/opt/perl5/lib/5.6.0/aix/CORE Expat.c
Running Mkbootstrap for XML::Parser::Expat ()
chmod 644 Expat.bs
LD_RUN_PATH="/lib" ld -o
.../blib/arch/auto/XML/Parser/Expat/Expat.so -b
halt:4 -bM:SRE -bI:/usr/opt/perl5/lib/5.6.0/aix/CORE/perl.exp
-bE:Expat.exp -b n
oentry -lC -lc Expat.o -lexpat
chmod 755 ../blib/arch/auto/XML/Parser/Expat/Expat.so
cp Expat.bs ../blib/arch/auto/XML/Parser/Expat/Expat.bs
chmod 644 ../blib/arch/auto/XML/Parser/Expat/Expat.bs
Manifying ../blib/man3/XML::Parser::Expat.3
Manifying blib/man3/XML::Parser::Style::Tree.3
Manifying blib/man3/XML::Parser::Style::Stream.3
Manifying blib/man3/XML::Parser.3
Manifying blib/man3/XML::Parser::Style::Subs.3
Manifying blib/man3/XML::Parser::Style::Objects.3
Manifying blib/man3/XML::Parser::Style::Debug.3
Target "makemakerdflt" is up to date.

Results of make test are:

$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/opt/perl5/
lib/5.6.0/aix -I/usr/opt/perl5/lib/5.6.0 -e 'use Test::Harness
qw(&runtests $ver
bose); $verbose=0; runtests @ARGV;' t/*.t
t/astress...........ok

t/cdata.............ok

t/decl..............ok

t/defaulted.........ok

t/encoding.........."my" variable $p masks earlier declaration in same
scope at
t/encoding.t line 94.
t/encoding..........ok

t/external_ent......Couldn't load LWP based external entity handler
Switching to file-based external entity handler
(To avoid this message, use NoLWP option to XML::Parser)
t/external_ent......ok

t/file..............ok

t/finish............ok

t/namespaces........ok

t/parament..........Couldn't load LWP based external entity handler
Switching to file-based external entity handler
(To avoid this message, use NoLWP option to XML::Parser)
t/parament..........ok

t/partial...........ok

t/skip..............ok

t/stream............ok

t/styles............ok

All tests successful.
Files=14, Tests=130, 3 wallclock secs ( 1.81 cusr + 0.35 csys = 2.16
CPU)
Target "test" is up to date.

And make install (edited a bit for space):

$ make install
Installing
/usr/opt/perl5/lib/site_perl/5.6.0/aix/auto/XML/Parser/Expat /Expat.so

Skipping
/usr/opt/perl5/lib/site_perl/5.6.0/aix/auto/XML/Parser/Expat /Expat.bs (
unchanged)
Files found in blib/arch: installing files in blib/lib into
architecture depende
nt library tree
Skipping /usr/opt/perl5/lib/site_perl/5.6.0/aix/XML/Parser.pm
(unchanged)
Skipping
/usr/opt/perl5/lib/site_perl/5.6.0/aix/XML/Parser/LWPExternE nt.pl (unch
anged)
Skipping /usr/opt/perl5/lib/site_perl/5.6.0/aix/XML/Parser/Expat.pm
(unchanged)
Skipping
/usr/opt/perl5/lib/site_perl/5.6.0/aix/XML/Parser/Style/Debu g.pm (uncha
nged)
..
..
..
Skipping
/usr/opt/perl5/lib/site_perl/5.6.0/aix/XML/Parser/Encodings/ x-euc-jp-un
icode.enc (unchanged)
Installing /usr/share/man/man3/XML::Parser::Expat.3
Installing /usr/share/man/man3/XML::Parser::Style::Tree.3
Installing /usr/share/man/man3/XML::Parser::Style::Stream.3
Installing /usr/share/man/man3/XML::Parser.3
Installing /usr/share/man/man3/XML::Parser::Style::Subs.3
Installing /usr/share/man/man3/XML::Parser::Style::Objects.3
Installing /usr/share/man/man3/XML::Parser::Style::Debug.3
Writing
/usr/opt/perl5/lib/site_perl/5.6.0/aix/auto/XML/Parser/.pack list
Appending installation info to
/usr/opt/perl5/lib/5.6.0/aix/perllocal.pod
Target "install" is up to date.

Re: Need Help with XML::Parser

am 06.07.2005 03:44:29 von Sisyphus

"marv" wrote in message
news:1120593194.470278.145130@f14g2000cwb.googlegroups.com.. .

> Can't locate XML/Parser.pm in @INC (@INC contains:
..
> /usr/opt/perl5/lib/site_perl/5.6.0/aix
..
> .)
..
..
> Skipping /usr/opt/perl5/lib/site_perl/5.6.0/aix/XML/Parser.pm

I assume that was skipped because the file is already there. If Parser.pm
is, in fact, in that location, then perl has no reason for being unable to
locate it.

Maybe the error is something else (I know nothing about AIX) ..... but I've
*never* seen perl report a "Can't locate ..." error *unless* the file it has
been asked to find is not present.

Cheers,
Rob

Re: Need Help with XML::Parser

am 06.07.2005 15:37:05 von Marv

Rob: Thanks for the response. You are correct in that the files were
skipped because they were already there. I had repeated the
installation process just to capture some of the log for posting. I am
certain the error is something else, but I have no idea what else could
it be. I was looking for some suggestions - hoping maybe someone had
encountered a problem similar to mine or just had an idea as to why
Perl would report that it couldn't locate the module. I run the
XML::Parser on another AIX system under Perl 5.005 without a problem.

If anyone has any thoughts, please respond. Thanks.

Marv

Re: Need Help with XML::Parser

am 07.07.2005 01:56:35 von Sisyphus

"marv" wrote in message
news:1120657025.158888.245550@f14g2000cwb.googlegroups.com.. .
> Rob: Thanks for the response. You are correct in that the files were
> skipped because they were already there. I had repeated the
> installation process just to capture some of the log for posting. I am
> certain the error is something else, but I have no idea what else could
> it be. I was looking for some suggestions - hoping maybe someone had
> encountered a problem similar to mine or just had an idea as to why
> Perl would report that it couldn't locate the module. I run the
> XML::Parser on another AIX system under Perl 5.005 without a problem.
>
> If anyone has any thoughts, please respond. Thanks.

There's no case mismatch somewhere, is there ? .... eg. a directory in the
path named 'AIX' that should be named 'aix' or a file named 'parser.pm' that
should be 'Parser.pm' .... or somesuch ?

In what you showed us in your original, there's no evidence that such a
problem is at all likely - but it's the only other thing I can think of.

Cheers,
Rob

Re: Need Help with XML::Parser

am 08.07.2005 15:50:59 von Marv

Rob: Thanks once again for the response. I finally figured out the
problem - simple as permissions. Guess I was thrown by misleading
error message and primarily by the fact that I didn't have to change
any directory permissions with any other Perl modules that I installed
previously. The directories containing Parser.pm and Expat were set up
for owner rwx only and being that the installer is root, ...

Re: Need Help with XML::Parser

am 09.07.2005 10:12:28 von Sisyphus

"marv" wrote in message
news:1120830659.775639.131890@g43g2000cwa.googlegroups.com.. .
> Rob: Thanks once again for the response. I finally figured out the
> problem - simple as permissions.

Live and learn - I can't recall ever before seeing an instance where perl
has complained of being unable to *locate* when the problem was one of
permissions, but maybe I simply don't recall correctly.

Anyway ..... I've seen it now :-)

Cheers,
Rob