Problem installing HTML::Parser for SpamAssassin

Has anyone had a problem installing HTML::Parser for SpamAssassin? I'm doing a qmail installation from qmailrocks… but here's what happens:

If I try to install the SpamAssassin RPM it tells me:

[root@www rpms]# rpm -Uvh perl-Mail-SpamAssassin-2.63-1.i386.rpm
warning: perl-Mail-SpamAssassin-2.63-1.i386.rpm: V3 DSA signature: NOKEY, key ID e580b363
error: Failed dependencies:
        perl(HTML::Parser) is needed by perl-Mail-SpamAssassin-2.63-1
        perl(HTML::Parser) >= 3.24 is needed by perl-Mail-SpamAssassin-2.63-1

So, I tried installing HTML::Parser again (I thought I'd done it before)…

The error I'm getting is:

[root@www HTML-Parser-3.35]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/api_version........ok
t/argspec-bad........ok
t/argspec............ok
t/argspec2...........ok
t/attr-encoded.......ok
t/callback...........ok
t/case-sensitive.....ok
t/cases..............ok
t/comment............ok
t/crashme............ok
t/declaration........ok
t/default............ok
t/dtext..............ok
t/entities...........ok
t/entities2..........ok
t/filter-methods.....ok
t/filter.............ok
t/handler-eof........ok
t/handler............ok
t/headparser-http....skipped
        all skipped: no reason given
t/headparser.........ok
t/ignore.............ok
t/largetags..........ok
t/linkextor-base.....skipped
        all skipped: no reason given
t/linkextor-rel......Can't locate HTML/Tagset.pm in @INC (@INC contains: /downloads/qmailrocks/perlmods/source/HTML-Parser-3.35/blib/lib /downloads/qmailrocks/perlmods/source/HTML-Parser-3.35/blib/arch /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 . /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at /downloads/qmailrocks/perlmods/source/HTML-Parser-3.35/blib/lib/HTML/LinkExtor.pm line 33.
BEGIN failed--compilation aborted at /downloads/qmailrocks/perlmods/source/HTML-Parser-3.35/blib/lib/HTML/LinkExtor.pm line 33.
Compilation failed in require at t/linkextor-rel.t line 3.
t/linkextor-rel......dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-4
        Failed 4/4 tests, 0.00% okay
t/magic..............ok
t/marked-sect........ok
t/msie-compat........ok
t/offset.............ok
t/options............ok
t/parsefile..........ok
t/parser.............ok
t/plaintext..........ok
t/process............ok
t/pullparser.........ok
t/skipped-text.......ok
t/stack-realloc......ok
t/textarea...........ok
t/tokeparser.........Can't locate HTML/Tagset.pm in @INC (@INC contains: /downloads/qmailrocks/perlmods/source/HTML-Parser-3.35/blib/lib /downloads/qmailrocks/perlmods/source/HTML-Parser-3.35/blib/arch /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 . /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at /downloads/qmailrocks/perlmods/source/HTML-Parser-3.35/blib/lib/HTML/TokeParser.pm line 12.
BEGIN failed--compilation aborted at /downloads/qmailrocks/perlmods/source/HTML-Parser-3.35/blib/lib/HTML/TokeParser.pm line 12.
Compilation failed in require at t/tokeparser.t line 4.
BEGIN failed--compilation aborted at t/tokeparser.t line 4.
t/tokeparser.........dubious
        Test returned status 2 (wstat 512, 0x200)
t/uentities..........skipped
        all skipped: Unicode entities not selected
t/unbroken-text......ok
t/xml-mode...........ok
Failed Test       Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/linkextor-rel.t    2   512     4    4 100.00%  1-4
t/tokeparser.t       2   512    ??   ??       %  ??
3 tests skipped.
Failed 2/42 test scripts, 95.24% okay. 4/217 subtests failed, 98.16% okay.
make: *** [test_dynamic] Error 29

If I'm not mistaken, it seems to have a problem with HTML::Tagset. But when I install HTML::Tagset, I get this:

cpan> install HTML::Tagset
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Wed, 02 Jun 2004 06:36:28 GMT
Running install for module HTML::Tagset
Running make for S/SB/SBURKE/HTML-Tagset-3.03.tar.gz
CPAN: Digest::MD5 loaded ok
Checksum for /root/.cpan/sources/authors/id/S/SB/SBURKE/HTML-Tagset-3.03.tar.gz ok
Scanning cache /root/.cpan/build for sizes
HTML-Tagset-3.03/
HTML-Tagset-3.03/Makefile.PL
HTML-Tagset-3.03/ChangeLog
HTML-Tagset-3.03/test.pl
HTML-Tagset-3.03/Tagset.pm
HTML-Tagset-3.03/README
HTML-Tagset-3.03/MANIFEST
Removing previously used /root/.cpan/build/HTML-Tagset-3.03

  CPAN.pm: Going to build S/SB/SBURKE/HTML-Tagset-3.03.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for HTML::Tagset
cp Tagset.pm blib/lib/HTML/Tagset.pm
Manifying blib/man3/HTML::Tagset.3pm
  /usr/bin/make  -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
1..1
ok 1
  /usr/bin/make test -- OK
Running make install
Writing /root/perl/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/HTML/Tagset/.packlist
Appending installation info to /root/perl/lib/perl5/5.8.0/i386-linux-thread-multi/perllocal.pod
  /usr/bin/make install  -- OK

I've tried a number of commands that seem to resolve other conflicts with CPAN… "export LANG=en_US" because that has popped up a few times, I've tried "unset LANG" because I found that on Google once. None of them have worked.

Any help would be appreciated.

Thanks!

j.

2 Replies

@jsalloum:

Writing /root/perl/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/HTML/Tagset/.packlist
Appending installation info to /root/perl/lib/perl5/5.8.0/i386-linux-thread-multi/perllocal.pod
  /usr/bin/make install  -- OK

Something seems wrong about that …

perl shouldn't be writing to /root/perl/lib/perl5 …. It should be writing to /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi …

I'm no perl expert, but you might wanna try the following commands:

mkdir -p /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/HTML
mv /root/perl/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/HTML/Tagset \
   /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/HTML

I can only hope that your other perl packages haven't been installed in the wrong dir as well. Once again: I'm not a perl expert

Bill Clinton

Eek! Argh. I have a problem then.

I just looked…

/root/perl/lib/perl5/siteperl/5.8.0/ has everything that I've installed inside, and /usr/lib/perl5/siteperl/5.8.0/ has nothing.

I'm new to Linux, and I started with a RH9 (Small) profile… how would this have gotten set to /root? I don't know enough about perl to have known that the /usr/lib/perl5 directory existed, so it's not like I changed the path or anything…

Here's a better question -- how do I fix it? (I'm hoping the reply isn't "Re-install everything"…)

:)

Thanks for your help.

j.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct