Click here to get back home

Need Help with XML::Parser

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Need Help with XML::Parser marv 07-05-2005
Posted by marv on July 5, 2005, 12:53 pm
Please log in for more thread options


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/LWPExternEnt.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/Debug.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/.packlist
Appending installation info to
/usr/opt/perl5/lib/5.6.0/aix/perllocal.pod
Target "install" is up to date.



Posted by Sisyphus on July 6, 2005, 11:44 am
Please log in for more thread options




> 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





Posted by marv on July 6, 2005, 6:37 am
Please log in for more thread options


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



Posted by Sisyphus on July 7, 2005, 9:56 am
Please log in for more thread options



> 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




Posted by marv on July 8, 2005, 6:50 am
Please log in for more thread options


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, ...



Similar ThreadsPosted
X500::DN::Parser V 1.16 July 29, 2004, 7:20 am
Can not Install XML::Parser September 29, 2004, 5:26 pm
How to use SGML::Parser? August 2, 2005, 5:18 pm
Possible bug in HTML::Parser November 15, 2005, 5:05 pm
Installing XML Parser May 25, 2006, 2:20 am
XML file parser April 4, 2007, 8:33 pm
RFC on module name: MMS::Parser November 10, 2007, 11:18 pm
Help Compiling XML::Parser On AIX 5.2 64bit September 18, 2005, 9:57 pm
ANNOUNCE: BBCode::Parser August 27, 2005, 12:43 pm
XML::Parser examples for the novice November 15, 2005, 11:31 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap