Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Change in Berkeley DB in Perl 5.12?

by armstd (Friar)
on Oct 02, 2011 at 14:45 UTC ( #929153=note: print w/replies, xml ) Need Help??

in reply to Change in Berkeley DB in Perl 5.12?

Did you switch from 32bit to 64bit Perl (or vice versa) in the process? I don't believe BerkeleyDB is platform-independent in terms of integer representation, so endian and size matter.

It would help if you gave more information, like the errors you're seeing, what you've done to debug this already, and so on. There's not much to work with here.

Update: Oh, I also recall that changing your underlying BerkeleyDB version will also break things, perhaps Lion moved you forward a version. In either case, you probably have to dump and rebuild your database files for your new configuration.


  • Comment on Re: Change in Berkeley DB in Perl 5.12?

Replies are listed 'Best First'.
Re^2: Change in Berkeley DB in Perl 5.12?
by RobbieSnr (Novice) on Oct 29, 2011 at 12:48 UTC

    I'm very sorry I've not replied until now - had been expecting emails with the replies.

    I have come across this problem in another situation, and can give more information. A website I was involved with was running a BB that used DB_File to produce Berkeley DB files. It has recently upgraded its software and these files can't now be read. I've been investigating this and find that previously it had Perl 5.8.8 with DB_FIle 1.814 using the DB engine version 4.4 but now it has Perl 5.10.1 with DB_File 1.82 and DB engine version 4.7. I suspected that the problem lay with the DB engine upgrade and you've confirmed that this is the case. I did check with Oracle but they couldn't definitely confirm that an upgrade in version 4 would cause a problem.

    I was fortunate in that I had enough information to rebuild the database files. Others could have problems if they didn't have another source for the database information as they wouldn't be able to dump the database if they couldn't now read it? Can you point me to where it's mentioned that the DB engine upgrades can cause problems. I see that ActiveState still use version 1 of the DB engine even with the DB_File they issue with Perl 5.12.


        I saw your reply but I didn't now what you were suggesting. Can you please explain?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://929153]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2018-06-21 18:57 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (118 votes). Check out past polls.