Spamassassin : Can’t locate HTML/Parser.pm in @INC

If you are trying to install Spamassassin but get that error, then it means you require the HTML/Parser.pm perl module.

RedHat:

 

perl -MCPAN -eshell
install HTML::Parser

 

If that gives you problems, run “unset LANG” then try again.

FreeBSD:

 

cd /usr/ports/www/p5-HTML-Parser
make install clean

 

or to manually compile from source for either OS:

 

wget http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTML-Parser-3.35.tar.gz
tar xvzf HTML-Parser-3.35.tar.gz
cd HTML-Parser-3.35
perl Makefile.PL
make
make install

 

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s