develooper Front page | perl.beginners | Postings from June 2009

Can't locate HTML::Parser in @INC

Thread Next
From:
Peter Nikolaidis
Date:
June 4, 2009 01:11
Subject:
Can't locate HTML::Parser in @INC
Message ID:
20090603135303.4117.qmail@lists.develooper.com
Hello,

We're running a Debian 5 (AMD64) server, with Perl 5.10 compiled from
source because we require a non-threaded Perl for an e-commerce app. It
fails to load, complaining that several modules were not found,
including, for instance, HTML::Parser. I installed this via

/usr/local/bin/perl -MCPAN -e 'install HTML::Parser'

and verified that I was using /usr/local/bin/perl (as opposed to the
stock Debian perl at /usr/bin/perl).



I wrote a test script, which does nothing more than require
HTML::Parser, and it fails with the following:

catuser@www2:~$ perl test.plx
Can't locate HTML::Parser in @INC (@INC contains:
/usr/local/lib/perl5/5.10.0/x86_64-linux /usr/local/lib/perl5/5.10.0
/usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux
/usr/local/lib/perl5/site_perl/5.10.0 .) at test.plx line 3.



If I do a search for HTML Parser, it does appear to be in the paths that
are being searched in @INC.

catuser@www2:~$ locate HTML | grep Parser
/home/catuser/interchange/lib/HTML/HeadParser.pm
/home/catuser/interchange/lib/HTML/Parser.pm
/home/catuser/interchange/lib/HTML/PullParser.pm
/home/catuser/interchange/lib/HTML/TokeParser.pm
/home/catuser/interchange/lib/auto/HTML/Parser
/home/catuser/interchange/lib/auto/HTML/Parser/.packlist
/home/catuser/interchange/lib/auto/HTML/Parser/Parser.bs
/home/catuser/interchange/lib/auto/HTML/Parser/Parser.so
/usr/lib/perl5/HTML/HeadParser.pm
/usr/lib/perl5/HTML/Parser.pm
/usr/lib/perl5/HTML/PullParser.pm
/usr/lib/perl5/HTML/TokeParser.pm
/usr/lib/perl5/auto/HTML/Parser
/usr/lib/perl5/auto/HTML/Parser/Parser.bs
/usr/lib/perl5/auto/HTML/Parser/Parser.so
/usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux/HTML/HeadParser.pm
/usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux/HTML/Parser.pm
/usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux/HTML/PullParser.pm
/usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux/HTML/TokeParser.pm
/usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux/auto/HTML/Parser
/usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux/auto/HTML/Parser/.packlist
/usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux/auto/HTML/Parser/Parser.bs
/usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux/auto/HTML/Parser/Parser.so


Any suggestions?

Thank you,

Peter

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About