Peter Nikolaidis wrote:

<snip>

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

catu...@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.

catu...@www2:~$ locate HTML | grep Parser

<snip>

/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?

What about file permissions? Does the user the test script was run as have read access to /usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux/HTML/Parser.pm ?

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to