I need some help in installing perl and some modules, namely XML::Parser on an AIX machine... Perl installed fine from smit... I then in a directory /envix/bin/expat-1.95.2 ran the Makefile.PL and make, make test and make install.. make test came back with 2 problems but didn't fail..
t/astress...........ok t/cdata.............ok t/decl..............ok t/defaulted.........ok 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 All tests successful. Expat was installed into /usr/local/lib and 'make install' reported no errors. Now, when trying to run < perl -e 'use XML::Parser' > just to see if the module will load I get this error... ==== ERROR ==== Can't locate XML/Parser.pm in @INC (@INC contains: /usr/local/lib/perl5/5.6.1/aix-thread /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/aix-thread /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at -e line 1. BEGIN failed--compilation aborted at -e line 1. =============== so I tried to install the XML::Parser module by < perl -MCPAN -e 'install XML::Parser' >, and it just error out becuase it couldn't load LWP... ==== ERROR ==== LWP not available Please, install Net::FTP as soon as possible. CPAN.pm installs it for you if you just type install Bundle::libnet Your ~/.netrc neither contains ftp.perl.org nor does it have a default entry Issuing "/usr/bin/ftp -n" ftp: Unknown host ftp.perl.org Not connected. Local directory now /.cpan/sources/authors Not connected. Not connected. Not connected. Not connected. Not connected. Not connected. Bad luck... Still failed! =============== Also, becuase I've never really had to delve into why modules don't load, coming from a background where by the -MCPAN and ppm did all the hard work for you, I've never really had to force the modules to install in the right place... I looked into installing LWP, I guess libwww-5.6.1, I read the docs and looked at the prereqs, I then tried to see if I had some of those modules installed which are... URI MIME-Base64 HTML-Parser libnet Digest-MD5 I tried to call those with perl -e 'use module' and they all failed, so I looked in /usr/local/lib/perl5/5.6.1 and found none of the .pm's there... HERE IS THE CONTENTS of /usr/local/lib/perl5/5.6.1 .... abbrev.pl charnames.pm Fatal.pm locale.pm syslog.pl aix-thread chat2.pl fields.pm look.pl tainted.pl AnyDBM_File.pm Class File Math Term assert.pl complete.pl FileCache.pm Net termcap.pl attributes.pm constant.pm FileHandle.pm newgetopt.pl Test auto CPAN filetest.pm open2.pl Test.pm AutoLoader.pm CPAN.pm FindBin.pm open3.pl Text AutoSplit.pm ctime.pl finddepth.pl open.pm Tie autouse.pm Cwd.pm find.pl overload.pm Time B DB.pm flush.pl perl5db.pl timelocal.pl base.pm Devel ftp.pl pod unicode Benchmark.pm diagnostics.pm getcwd.pl Pod UNIVERSAL.pm bigfloat.pl DirHandle.pm Getopt pwd.pl User bigint.pl dotsh.pl getopt.pl Search utf8_heavy.pl bigrat.pl Dumpvalue.pm getopts.pl SelectSaver.pm utf8.pm blib.pm dumpvar.pl hostname.pl SelfLoader.pm validate.pl bytes_heavy.pl English.pm I18N Shell.pm vars.pm bytes.pm Env.pm importenv.pl shellwords.pl warnings cacheout.pl exceptions.pl integer.pm sigtrap.pm warnings.pm Carp Exporter IO stat.pl Win32.pod Carp.pm Exporter.pm IPC strict.pm CGI ExtUtils less.pm subs.pm CGI.pm fastcwd.pl lib.pm Symbol.pm so a question, why is nothing installing right... I see why LWP does not load for the -MCPAN -e install to work, but I can't see why XML::Parser failed to put the files in the right place to start with even though the make test worked? had anyone come across this problem or know a good place to start looking for some help ? TIA Geoff If you need any info about the configuration of the AIX box, please ask me.... thanks.. _______________________________________________ Perl-Unix-Users mailing list. To unsubscribe go to http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users