Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trying to install popfile (Berkeleydb problem)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ck42
l33t
l33t


Joined: 31 Jul 2003
Posts: 789

PostPosted: Fri Oct 17, 2003 10:24 pm    Post subject: Trying to install popfile (Berkeleydb problem) Reply with quote

AFter getting the initial complaint by popfile referring to BerkelyDB, I went and dl'd and installed the latest ver. of berkeleydb.

But, I'm still getting the same @INC error that _seems_ like it's telling me there's a PATH error...I think.

Can someone tell me what the process is for successfuly getting popfile installed?
Back to top
View user's profile Send private message
Blahbbs
n00b
n00b


Joined: 15 Jul 2002
Posts: 42

PostPosted: Tue Oct 21, 2003 4:24 pm    Post subject: Reply with quote

I'm upgrading to POPfile 0.20 also and ran into the same problem. Currently there is a request at bugs.gentoo.com for someone to make a ebuild for the BerkeleyDB perl module. That is independent of the db package that you probably have installed.

If you can't wait for an ebuild and don't mind stepping outside of the portage tree, you could try this. It worked for me, but your mileage may vary.

As root:
Code:
perl -MCPAN -e shell

This will bring up the Perl CPAN shell. This allows you to search for and install perl modules easily. If you've never done this before, it will ask you if you would like to manually configure it. I said "no" and let it autoconfigure itself. It seemed to be fine.

After autconfiguration is complete, you'll be presented with a "cpan>" prompt. Just run the following command to download, compile, and install the BerkeleyDB module:
Code:
cpan>  install BerkeleyDB


That's it. It's just as easy as using "emerge".

After I installed the module as above, POPfile ran just great.

Hope this helps!
Back to top
View user's profile Send private message
ck42
l33t
l33t


Joined: 31 Jul 2003
Posts: 789

PostPosted: Tue Oct 21, 2003 4:36 pm    Post subject: Reply with quote

Ja, I happened to find that same execution info in another thread.

I ran it and actually went thru the manual config...everything went fine.
I also installed BerkeleyDB again from with the script as root and it appeared to install w/o issue.

BUT.....when I try to run perl popfile.pl, it STILL gives me that same @INC path error crap.

I wish I knew how to UNinstall everything and start from scratch, but how do I remove stuff that wasn't emerged? ...there's def. something to be said for package management.
Back to top
View user's profile Send private message
Blahbbs
n00b
n00b


Joined: 15 Jul 2002
Posts: 42

PostPosted: Tue Oct 21, 2003 9:12 pm    Post subject: Reply with quote

Hmmm. I dunno. I'm using perl 5.8.0-r12, if that makes a difference. My BerkeleyDB modules are located here:
Code:

/usr/lib/perl5/site_perl/5.8.0/i686-linux/auto/BerkeleyDB
/usr/lib/perl5/site_perl/5.8.0/i686-linux/auto/BerkeleyDB/BerkeleyDB.so
/usr/lib/perl5/site_perl/5.8.0/i686-linux/auto/BerkeleyDB/BerkeleyDB.bs
/usr/lib/perl5/site_perl/5.8.0/i686-linux/BerkeleyDB.pm
/usr/lib/perl5/site_perl/5.8.0/i686-linux/BerkeleyDB
/usr/lib/perl5/site_perl/5.8.0/i686-linux/BerkeleyDB.pod


And this is my @INC:
Code:

/etc/perl
/usr/lib/perl5/site_perl/5.8.0/i686-linux
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i686-linux
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i686-linux
/usr/lib/perl5/5.8.0
/usr/local/lib/site_perl
.


If I think of something else, I'll chime in, otherwise we might have to wait for an ebuild. :(

Thanks
Back to top
View user's profile Send private message
ck42
l33t
l33t


Joined: 31 Jul 2003
Posts: 789

PostPosted: Tue Oct 21, 2003 11:51 pm    Post subject: Reply with quote

I'll try deleting those dir's and try again. You're right tho, an ebuild sure would be nice. I REALLY want to get Popgile going....it's looks to be a VERY nice spam filtering app.
Back to top
View user's profile Send private message
ck42
l33t
l33t


Joined: 31 Jul 2003
Posts: 789

PostPosted: Wed Oct 22, 2003 1:06 am    Post subject: Reply with quote

Well, looling in these dir's:

/usr/lib/perl5/site_perl/5.8.0/i686-linux/auto/BerkeleyDB
/usr/lib/perl5/site_perl/5.8.0/i686-linux/auto/BerkeleyDB/BerkeleyDB.so
/usr/lib/perl5/site_perl/5.8.0/i686-linux/auto/BerkeleyDB/BerkeleyDB.bs
/usr/lib/perl5/site_perl/5.8.0/i686-linux/BerkeleyDB.pm
/usr/lib/perl5/site_perl/5.8.0/i686-linux/BerkeleyDB
/usr/lib/perl5/site_perl/5.8.0/i686-linux/BerkeleyDB.pod

I don't have any of those Berkelely files there. I don't know why they didn't get installed. Should 've been done when installing DBdb in the perl script, shouldn't it have?

How did you get the listings for the @INC thing?
Back to top
View user's profile Send private message
arkhan_jg
Apprentice
Apprentice


Joined: 18 Mar 2003
Posts: 199
Location: Dorset, UK

PostPosted: Thu Oct 23, 2003 12:28 pm    Post subject: Reply with quote

I found this in another thread;

Code:
/usr/lib/portage/bin/g-cpan.pl BerkeleyDB


which creates an ebuild for the perl module and emerges it on the fly, so to speak.

Worked for me, anyway.

According to this thread there's a policy of not creating ebuilds for CPAN modules, unless they're a dependency for another ebuild, because of the overhead of keeping them up to date.

Far as I can tell, popfile isn't an ebuild. Perhaps we should fix that first!

Oh, and for the record, my perl-BerkeleyDB files ended up in

Code:

/usr/lib/perl5/vendor_perl/5.8.1/i686-linux/
/usr/lib/perl5/vendor_perl/5.8.1/i686-linux/auto/
/usr/lib/perl5/vendor_perl/5.8.1/i686-linux/auto/BerkeleyDB/
/usr/lib/perl5/vendor_perl/5.8.1/i686-linux/auto/BerkeleyDB/autosplit.ix
/usr/lib/perl5/vendor_perl/5.8.1/i686-linux/auto/BerkeleyDB/.packlist
 /usr/lib/perl5/vendor_perl/5.8.1/i686-linux/auto/BerkeleyDB/BerkeleyDB.bs
/usr/lib/perl5/vendor_perl/5.8.1/i686-linux/auto/BerkeleyDB/BerkeleyDB.so
/usr/lib/perl5/vendor_perl/5.8.1/i686-linux/BerkeleyDB/
/usr/lib/perl5/vendor_perl/5.8.1/i686-linux/BerkeleyDB/Btree.pm
/usr/lib/perl5/vendor_perl/5.8.1/i686-linux/BerkeleyDB/Hash.pm
/usr/lib/perl5/vendor_perl/5.8.1/i686-linux/BerkeleyDB.pm
/usr/lib/perl5/vendor_perl/5.8.1/i686-linux/BerkeleyDB.pod


Obviously, I'm using perl-5.8.1-r2

It's also worth noting that the BerkeleyDB available from sleepycat.com and the berkeleyDB perl modules are completely different beasties, as far as I can tell; the one you need for popfile is the CPAN perl module, not the other one.

Oh, and if you want your own perl @INC, try
Code:
perl -V

_________________
make menuconfig not war
Back to top
View user's profile Send private message
cripwalk
n00b
n00b


Joined: 13 Jul 2003
Posts: 59
Location: Socal

PostPosted: Mon Nov 03, 2003 5:22 pm    Post subject: Reply with quote

Blahbbs wrote:
I'm upgrading to POPfile 0.20 also and ran into the same problem. Currently there is a request at bugs.gentoo.com for someone to make a ebuild for the BerkeleyDB perl module. That is independent of the db package that you probably have installed.

If you can't wait for an ebuild and don't mind stepping outside of the portage tree, you could try this. It worked for me, but your mileage may vary.

As root:
Code:
perl -MCPAN -e shell

This will bring up the Perl CPAN shell. This allows you to search for and install perl modules easily. If you've never done this before, it will ask you if you would like to manually configure it. I said "no" and let it autoconfigure itself. It seemed to be fine.

After autconfiguration is complete, you'll be presented with a "cpan>" prompt. Just run the following command to download, compile, and install the BerkeleyDB module:
Code:
cpan>  install BerkeleyDB


That's it. It's just as easy as using "emerge".

After I installed the module as above, POPfile ran just great.

Hope this helps!


Thank you. That worked perfect for me
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum