Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Tina Messmann <tina dot messmann at xinux dot de>
Subject: Re: problem bringing Sybase::DBlib to work
Date: Nov 22 2001 7:42AM

Michael Peppler wrote:

>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/ 
> > 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/ 
> > undefined symbol: cs_ctx_alloc
> > 
> > The installation of both modules worked fine.
>What this means is that neither, nor are linked
>into, respectively
>So I have a feeling that the installation actually did not work
>First, try to do this:
>ldd /usr/local/lib/perl5/site_perl/5.6.1/i586-linux/auto/Sybase/DBlib/
>This should display something like this:
>troll (8:11AM):92 > ldd /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Sybase/DBlib/ 
> => /opt/sybase-12.5/OCS/lib/ (0x40023000)
> => /lib/ (0x400d9000)
> => /lib/ (0x400fb000)
>	/lib/ => /lib/ (0x80000000)
>If isn't listed, then your build did not work, and you
>should try to reinstall.

Hello Michael,
Thanks for Your answer.
You are right, isn't listet. I reinstalled the modules, the 
error remains the same.
I have installed the OpenClient Libs from Sybase.
I tried to find the file, but it doesn't exist on my system. 
Why not? Where should it be?
Then i installed Sybase ASE 12.5, but is nowhere. Where can 
i get it?
Or is it created during the Installation of DBD::DBlib?