[SLUG] small POPFile / Perl caveat

From: Mario Lombardo (mario@alienscience.com)
Date: Wed Nov 26 2003 - 03:58:42 EST


Running RH8.0 with more SPAM than an Atkin's diet, I was pretty excited to
hear of this program from our last St. Pete meeting, POPFile
(http://popfile.sourceforge.net/). I had some problems with the install, but
I found the issue on their website. Here's the problem I was getting.

[mario@baglady popfile]$ perl insert.pl
Can't locate BerkeleyDB.pm in @INC (@INC contains:
/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
Classifier/Bayes.pm line 51.
BEGIN failed--compilation aborted at Classifier/Bayes.pm line 51.
Compilation failed in require at insert.pl line 27.
BEGIN failed--compilation aborted at insert.pl line 27.
[mario@baglady popfile]$

Well the link to the solution is here:
http://sourceforge.net/forum/forum.php?thread_id=977259&forum_id=213100
from Adrian Nicolaiev
1) From shell prompt type: cpan
2) From cpan prompt type: r
3) Verify
4) Depending on 3, type: install BerkeleyDB
5) Depending on 4, and your confidence, type: force install BerkeleyDB

But I couldn't run "cpan" OH NO!
So first I did this:
[mario@baglady popfile]$ apt-cache search cpan

OK, it looks like the thing I want is called perl-CPAN, so I ran this:
[mario@baglady popfile]$ apt-get install perl-CPAN

Then this per the man page:
[mario@baglady popfile]$ perl -MCPAN -e shell

Then I answered the question with "NO"
and let it do it's FTP and number crunching thing.
Then I followed the directions from step #2.

I ran this again and BINGO!
[mario@baglady popfile]$ perl insert.pl

POPFile was easy to install and set-up after that snag.

/mario

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:15:16 EDT