|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: problem bringing Sybase::DBlib to work
Date: Nov 21 2001 4:12PM
Tina Messmann writes:
> Hello All,
>
> sorry if this is a stupid question, i am a beginner and just subscribed
> to this list.
> I try to create a very simple script to connect to a Sybase Server.
> When inserting the line 'use Sybase::DBlib;' and invoking the script,
> the following error occurs:
>
> /usr/bin/perl: relocation error:
> /usr/local/lib/perl5/site_perl/5.6.1/i586-linux/auto/Sybase/DBlib/DBlib.so:
> undefined symbol: dbinit
>
> I tried to use DBD::Sybase, but i get a similar error:
>
> /usr/bin/perl: relocation error:
> /usr/local/lib/perl5/site_perl/5.6.1/i586-linux/auto/DBD/Sybase/Sybase.so:
> undefined symbol: cs_ctx_alloc
>
> The installation of both modules worked fine.
What this means is that neither libsybdb.so, nor libcs.so are linked
into DBlib.so, respectively Sybase.so.
So I have a feeling that the installation actually did not work
correctly.
First, try to do this:
ldd /usr/local/lib/perl5/site_perl/5.6.1/i586-linux/auto/Sybase/DBlib/DBlib.so
This should display something like this:
troll (8:11AM):92 > ldd /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Sybase/DBlib/DBlib.so
libsybdb.so => /opt/sybase-12.5/OCS/lib/libsybdb.so (0x40023000)
libm.so.6 => /lib/libm.so.6 (0x400d9000)
libc.so.6 => /lib/libc.so.6 (0x400fb000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
If libsybdb.so isn't listed, then your build did not work, and you
should try to reinstall.
Michael
--
Michael Peppler - Data Migrations Inc. - http://www.mbay.net/~mpeppler
mpeppler@peppler.org - mpeppler@mbay.net
International Sybase User Group - http://www.isug.com
|