Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Trying to install popfile (Berkeleydb problem)

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
ck42
l33t
l33t
User avatar
Posts: 789
Joined: Thu Jul 31, 2003 4:07 am

Trying to install popfile (Berkeleydb problem)

  • Quote

Post by ck42 » Fri Oct 17, 2003 10:24 pm

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?
Top
Blahbbs
n00b
n00b
Posts: 42
Joined: Mon Jul 15, 2002 10:30 pm

  • Quote

Post by Blahbbs » Tue Oct 21, 2003 4:24 pm

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: Select all

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: Select all

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!
Top
ck42
l33t
l33t
User avatar
Posts: 789
Joined: Thu Jul 31, 2003 4:07 am

  • Quote

Post by ck42 » Tue Oct 21, 2003 4:36 pm

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.
Top
Blahbbs
n00b
n00b
Posts: 42
Joined: Mon Jul 15, 2002 10:30 pm

  • Quote

Post by Blahbbs » Tue Oct 21, 2003 9:12 pm

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

Code: Select all

/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: Select all

/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
Top
ck42
l33t
l33t
User avatar
Posts: 789
Joined: Thu Jul 31, 2003 4:07 am

  • Quote

Post by ck42 » Tue Oct 21, 2003 11:51 pm

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.
Top
ck42
l33t
l33t
User avatar
Posts: 789
Joined: Thu Jul 31, 2003 4:07 am

  • Quote

Post by ck42 » Wed Oct 22, 2003 1:06 am

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?
Top
arkhan_jg
Apprentice
Apprentice
User avatar
Posts: 199
Joined: Tue Mar 18, 2003 9:45 pm
Location: Dorset, UK
Contact:
Contact arkhan_jg
Website

  • Quote

Post by arkhan_jg » Thu Oct 23, 2003 12:28 pm

I found this in another thread;

Code: Select all

/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: Select all

/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: Select all

perl -V
make menuconfig not war
Top
cripwalk
n00b
n00b
Posts: 59
Joined: Sun Jul 13, 2003 9:20 pm
Location: Socal

  • Quote

Post by cripwalk » Mon Nov 03, 2003 5:22 pm

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: Select all

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: Select all

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
Top
Post Reply

8 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy