Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: DBM Portability?

by dree (Monsignor)
on Oct 03, 2002 at 09:02 UTC ( #202464=note: print w/replies, xml ) Need Help??


in reply to DBM Portability?

With DB_File I had the same problem: a big hash (>150Mb) generated on a Win environment had been read by Perl on Slackware 8.0 but NOT on Freebsd 4.3 ...

If you are you using DB_File, you can install the same DB_File version on both machines (different version of the same module could have introduced differences with big hashes).

Another obvious way is to create the dbm again on the second O.S. .

Replies are listed 'Best First'.
Re: Re: DBM Portability?
by PodMaster (Abbot) on Oct 03, 2002 at 11:02 UTC
    I had that problem once (perl upgraded along with DB_File), and then read in the documentation
    Note: The database file format has changed multiple times in Berkeley DB version 2, 3 and 4. If you cannot recreate your databases, you must dump any existing databases with either the db_dump or the db_dump185 utility that comes with Berkeley DB. Once you have rebuilt DB_File to use Berkeley DB version 2 or greater, your databases can be recreated using db_load. Refer to the Berkeley DB documentation for further details.

    ____________________________________________________
    ** The Third rule of perl club is a statement of fact: pod is sexy.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://202464]
help
Chatterbox?
[GotToBTru]: time for some C8H10N4O2 for me
[ambrus]: GotToBTru: wait, you tell only the atom totals of what you want? Is that like ordering food in a restaurant by telling only the nutrient amounts you need, or
[ambrus]: like when a medieval scientist supposedly proves his priority inventing something by having previously published an anagram of a thousand letters long summary of the invention?
[choroba]: Progress! Nowadays, you can write a Perl script to generate such an anagram!
[GotToBTru]: i like to order my chemicals a-la-carte ambrus ;)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2016-12-06 13:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (104 votes). Check out past polls.