Hi, On 01 Jul 2003 11:49:28 +0800 Jon Miller <[EMAIL PROTECTED]> wrote:
> Greetings, > I new to the list so I apologize if the following has already been > covered. I recently install (attempted) SA-2.55-1 (rpms) on a RHL7.2 > server. > gateway:/etc/mail/spamassassin# rpm -qa | grep spamassassin > spamassassin-2.55-1 > spamassassin-tools-2.55-1 > > It also has installed perl-5.6.1-34.99.6: > gateway:/etc/mail/spamassassin# rpm -qa | grep perl > perl-Digest-MD5-2.13-1 > perl-libnet-1.0703-6 > perl-libwww-perl-5.53-3 > openssl-perl-0.9.6b-32.7 > perl-Mail-SpamAssassin-2.55-1 > perl-5.6.1-34.99.6 > perl-URI-1.12-5 > perl-MIME-Base64-2.12-6 > perl-HTML-Parser-3.26-14 > perl-SGMLSpm-1.03ii-4 > perl-HTML-Tagset-3.03-28 > > When I try to run /usr/bin/spamd I get the following messages. > > gateway:/etc/mail/spamassassin# /usr/bin/spamd > Can't locate HTML/Parser.pm in @INC (@INC contains: ../lib > /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 ... Looks like perl can't find HTML::Parser. What does perl -MHTML::Parser -e 'print $HTML::Parser::VERSION,"\n";' give you? You should see '3.26'; if you get an error, perl can't find HTML::Parser. Compare perl's module search path to the location of HTML::Parser to confirm a path mismatch with: perl -V (look at the last 5-10 lines of output under @INC; @INC is the list of 'include' directories, where perl looks for modules.) locate Parser.pm | egrep 'HTML/Parser.pm' (you may need to use updatedb to refresh your locate() database) Also, compare: head -1 /usr/bin/spamd to which perl to see if spamd is calling the proper version of perl on your system. The simplest solution may be to download a fresh version of HTML::Parser from CPAN (http://www.cpan.org/modules/by-module/HTML/HTML-Parser-3.28.tar.gz), then manually install by the standard method: wget http://www.cpan.org/modules/by-module/HTML/HTML-Parser-3.28.tar.gz tar xvfz HTML-Parser-3.28.tar.gz cd HTML-Parser-3.28 perl Makefile.PL make make test # If 'make test' succeeds, then (as root) make install Or save yourself trouble in the long term, configure CPAN, and use 'install HTML::Parser' which should automatically handle all the dependencies for HTML::Parser. See http://www.cynistar.net/~apthorpe/code/configuring_cpan.html for more details. Hint: Configure libnet to always use passive FTP if you're behind a firewall. If you're not behind a firewall, get behind one, then reconfigure libnet... :) This may offend the RPM purists out there but IMHO you're much better off using perl's native package management system (CPAN) rather than RPM for maintaining a perl distribution. The 'r' command under 'perl -MCPAN -e shell' does a wonderful job of telling you what's installed and what's current, allowing you to easily keep your perl installation up-to-date. You no longer need to depend on your O/S vendor to keep their RPMs current. hth, -- Bob ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk