|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: Re: DBlib under Linux problem
Date: Oct 14 1998 1:33PM
Victor Sovetov writes:
> >Victor Sovetov writes:
> > > Hello!
> > >
>
>
> Hello again!
>
> > > I have a strange problem.
> > > All compilations & tests was successful, but in execute time ... :
> > >
> > > [victor@hawk victor]$ perl
> > > use Sybase::DBlib;
> > > Can't locate loadable object for module Sybase::DBlib in @INC (@INC
> > > contains: /u
> > > sr/lib/perl5/5.00502/i586-linux-thread /usr/lib/perl5/5.00502
> > > /usr/lib/perl5/sit
> > > e_perl/5.005/i586-linux-thread /usr/lib/perl5/site_perl/5.005 .) at -
> >line 1
> > > BEGIN failed--compilation aborted at - line 1.
> > > [victor@hawk victor]$
> >
> >Looks like Sybase::DBlib is not installed correctly.
> >
> >Perl is looking for DBlib.so in
> >/usr/lib/perl5/site_perl/5.005/i586-linux-thread/auto/Sybase/DBlib/DBlib.so
> >
> >Check to see that it's there (CTlib.so should be in
> >.../CTlib/CTlib.so).
>
>
> Hmmm.... but LINKTYPE=static in my CONFIG... If i comment this line, i have
> the error:
>
> t/bcp...............Can't call method "sql" on an undefined value at
> t/bcp.t lin
> e 47.
> dubious
OK - Have you resolved the -ldb issue?
Perl is linked with -ldb (Berkeley DB) by default if it is found. Both
-ldb (version 1.x) and DBlibrary define a dbopen() function...
YOu need to rebuild perl without the -ldb extra library (this is done
during the Configure step), and then rebuild sybperl.
YOu can safely build DB_File if you need it, as the two shared objects
can co-exist with no problem.
Michael
--
Michael Peppler -||- Data Migrations Inc.
mpeppler@mbay.net -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com
|