Chad Kellerman wrote:
Johann,

I have had the same problem. Check, I bet the versions of Berkley DB are different.



Chad


Johann Spies wrote:

We have a situation that we need to open a dbm-file but cannot do so
using perl version 5.8.4-2 on Debian Sarge.  The following script
fails, but the same script and dbm-file works on Woody with perl 5.6:

#!/usr/bin/perl -w

use Fcntl;
use DB_File;
#use NDBM_File;
use DBI;

$dbfile = "/tmp/globaldb.db";

tie(%hash,"DB_File",$dbfile,O_RDONLY) || die "Cannot open $dbfile [$!]";


untie %hash;

Is there a way to read that file with perl 5.8?

Regards
Johann


We ran accross the same problem, and found this utility db file that will usually correct the problem with older .db files. Locate this file, which requires root access I believe, filename: db_upgrade

then from the command line execute:

db_upgrade /server_path/to/filename.db

should do the trick :)

--
Mike<mickalo>Blezien
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Thunder Rain Internet Publishing
Providing Internet Solutions that work!
http://thunder-rain.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to