Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Change in Berkeley DB in Perl 5.12?

by armstd (Friar)
on Oct 02, 2011 at 14:45 UTC ( [id://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.

--Dave

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
    Dave

    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.

    Eric

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://929153]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-03-29 12:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found