Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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. .


Comment on Re: DBM Portability?
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2014-07-28 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (196 votes), past polls