PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Ruth S dot McNay" <ruthmcnay at aol dot com>
Subject: Re: Sybase Open Client 12.5 and Sybperl
Date: Sep 13 2001 9:25PM

> What is the value of your LD_LIBRARY_PATH?
LD_LIBRARY_PATH_64=/apps/sybase/12_5.SUN2_8/OCS-12_5/lib:/apps/sybase/12_5.SUN2_8/OCS-12_5/lib3p64:/usr/lib/lwp/64

SYBASE=/apps/sybase/12_5.SUN2_8

> Also - cd to
> /usr/local/lib/perl5/site_perl/5.7.2/sun4-solaris/auto/Sybase/CTlib
> and run "ldd CTlib.so".

sybuser@msjob1rp:/usr/local/lib/perl5/site_perl/5.7.2/sun4-solaris/auto/Sybase/CTlib
->ldd CTlib.so
        libintl.so.1 =>  /usr/lib/libintl.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        /usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1

Thanks
Ruth

Michael Peppler wrote:
> 
> Ruth S. McNay writes:
>  > The SA said that he build perl and sybperl fine.  I am running a script that
>  > calls the following packages:
> 
>  > We get the following error:
>  >
>  > ld.so.1: /usr/bin/perl: fatal: relocation error: file
>  > /usr/local/lib/perl5/site_perl/5.7.2/sun4-solaris/auto/Sybase/CTlib/CTlib.so:
>  > symbol cs_ctx_alloc: referenced symbol not found
>  > Killed
> 
> This would mean that the Sybase libraries aren't found, or that they
> get incorrectly loaded.
> 
> What is the value of your LD_LIBRARY_PATH?
> 
> Also - cd to
> /usr/local/lib/perl5/site_perl/5.7.2/sun4-solaris/auto/Sybase/CTlib
> and run "ldd CTlib.so".
> 
> You should get something like this:
> 
> kiruna (1:39PM):6 > ldd CTlib.so
>         libct.so =>      /opt/sybase-12.0/OCS-12_0/lib/libct.so
>         libcs.so =>      /opt/sybase-12.0/OCS-12_0/lib/libcs.so
>         libtcl.so =>     /opt/sybase-12.0/OCS-12_0/lib/libtcl.so
>         libcomn.so =>    /opt/sybase-12.0/OCS-12_0/lib/libcomn.so
>         libintl.so =>    /opt/sybase-12.0/OCS-12_0/lib/libintl.so
>         libtli.so =>     /opt/sybase-12.0/OCS-12_0/lib/libtli.so
>         libm.so.1 =>     /usr/lib/libm.so.1
>         libc.so.1 =>     /usr/lib/libc.so.1
>         libdl.so.1 =>    /usr/lib/libdl.so.1
> 
> ok - so that's OC 12.0 on Solaris... here's what OC 12.5 on linux
> gives me:
> 
> troll (1:40PM):3 > ldd /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Sybase/CTlib/CTlib.so
>     libct.so => /opt/sybase-12.5/OCS/lib/libct.so (0x4001e000)
>     libcs.so => /opt/sybase-12.5/OCS/lib/libcs.so (0x4008b000)
>     libsybtcl.so => /opt/sybase-12.5/OCS/lib/libsybtcl.so (0x40098000)
>     libcomn.so => /opt/sybase-12.5/OCS/lib/libcomn.so (0x400dd000)
>     libintl.so => /opt/sybase-12.5/OCS/lib/libintl.so (0x4013a000)
>     libm.so.6 => /lib/i686/libm.so.6 (0x40143000)
>     libc.so.6 => /lib/i686/libc.so.6 (0x40168000)
>     /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
> 
> 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

-- 
*****************************************************************************
Ruth S. McNay                   Phone:520-514-3408
5401 East Williams Blvd.                    Fax:  520-514-3194
Tucson, Arizona 85711

Senior Database Administrator           RuthMcNay@aol.com
Call Center Measurement And Reporting