[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Need an older version of Perl on Debian for WebCT



On Tue, Jul 27, 2004 at 10:40:42AM -0400, Jason Rennie wrote:
> On Tue, Jul 27, 2004 at 02:21:03PM +0200, Johann Spies wrote:
> > The problem is that (we are trying out sarge now) the perl version
> > (5.8.3) cannot open the Berkeley database files of WebCT 3.8.  I
> > suspect it needs perl 5.005 which is what is installed on the RH
> > server at the moment.  Is there a way to have both perl 5.8.3 and
> > 5.005 on the same machine?
> 
> Are you absolutely sure you have installed all the necessary packages?
> Here are some packages that perl may need to read Berkeley DB files:
> 
> libberkeleydb-perl
> libdbi-perl

At that time this solved the problem and the following script could
open the .db file:
============================
#!/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 [$!]";

# do something with the database

untie %hash;
============================

Now, with the latest perl 5.8.4-2 on sarge this script fails to work
while it still works on woody.

This is a serious problem for us.  With our limited perl knowledge we
do not know how to solve it.


Johann Spies and Gerhard van Wageningen.
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "Submit yourselves therefore to God. Resist the devil, 
      and he will flee from you."        James 4:7 



Reply to: