Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: DBM Portability?

by dree (Monsignor)
on Oct 03, 2002 at 09:02 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://202464]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (12)
As of 2024-04-23 14:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found