in reply to DB_FILE from LINUX to Windows

The Berkeley DB file format changed with different versions of the library. The file format should be compatible for the same version of the library on different platforms.

For example, the DB_File that comes with Red Hat 7.3 is linked against db 3.3. I bet the Windows 2000 version has an earlier version of the library compiled into it. It can't open databases created with the newer versions of the library.

Try using the file command on databases created on Linux and Windows. It will identity the version. If the Windows version is new enough, you may be able to convert the files with db_dump and db_load.

Replies are listed 'Best First'.
Re: Re: DB_FILE from LINUX to Windows
by PodMaster (Abbot) on Oct 14, 2003 at 07:45 UTC
    I bet the Windows 2000 version has an earlier version of the library compiled into it. It can't open databases created with the newer versions of the library.
    That would depend. The DB_File on my repository ;) yields something like
    use DB_File; warn $DB_File::VERSION; warn $DB_File::db_version; die $DB_File::db_ver; __END__ 1.805 at - line 2. 4.1 at - line 3. 4.001025 at - line 4.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.