Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: RE: LD_LIBRARY_PATH problem
Date: Jun 18 1999 3:48PM
Sullivan, Kenneth P writes:
> when I run the ldd command:
> /local/lib/perl5/site_perl/5.005/sun4-solaris/auto/Sybase/CTlib: ldd
> libintl.so.1 => /lib/libintl.so.1
> libm.so.1 => /lib/libm.so.1
> libc.so.1 => /lib/libc.so.1
> libdl.so.1 => /usr/lib/libdl.so.1
> It appears as though the Sybase libraries aren't even being considered. I
> am thinking that the install was not done properly. Also, I don't know
> which libraries where pointed at when sybperl was installed (the guy who did
> it is no longer working here ;(
This doesn't look good. The link to /lib/libintl.so.1 is wrong (that's
the Solaris version - you should be pointing at the Sybase version).
I think you're going to have to reinstall sybperl to get this working.
> > -----Original Message-----
> > From: Michael Peppler [SMTP:firstname.lastname@example.org]
> > Sent: Friday, June 18, 1999 10:19 AM
> > To: SybPerl Discussion List
> > Subject: LD_LIBRARY_PATH problem
> > Sullivan, Kenneth P writes:
> > > Hi,
> > >
> > > I am trying to execute my perl script in a sun-solaris environment.
> > The
> > > error message leads me to believe that I have an LD_LIBRARY_PATH
> > problem,
> > > but I have that set to the current location of the 11.0.x open client
> > > libraries.
> > >
> > > The call:
> > >
> > > row_cnt.pl testsql
> > > ld.so.1: /usr/local/bin/perl: fatal: relocation error: file
> > > /usr/local/lib/perl5
> > > /site_perl/5.005/sun4-solaris/auto/Sybase/CTlib/CTlib.so: symbol
> > > cs_ctx_alloc: r
> > > eferenced symbol not found
> > > Killed
> > >
> > First try
> > ldd
> > /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/Sybase/CTlib/CTlib.
> > so
> > to make sure that the script is really finding the right libraries
> > (for example, on my linux box I get:
> > troll (7:15AM):221 > ldd
> > /usr/lib/perl5/site_perl/5.005/i686-linux/auto/Sybase/CTlib/CTlib.so
> > libct.so => /opt/sybase/lib/libct.so (0x40018000)
> > libcs.so => /opt/sybase/lib/libcs.so (0x40061000)
> > libsybtcl.so => /opt/sybase/lib/libsybtcl.so (0x4006e000)
> > libcomn.so => /opt/sybase/lib/libcomn.so (0x4007f000)
> > libintl.so => /opt/sybase/lib/libintl.so (0x400be000)
> > libinsck.so => /opt/sybase/lib/libinsck.so (0x400c6000)
> > libm.so.6 => /lib/libm.so.6 (0x400c9000)
> > libc.so.6 => /lib/libc.so.6 (0x400e2000)
> > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
> > Next, if the libraries seem to be right, check the actual libraries in
> > the Sybase directory.
> > At first look this seems like a problem with your Sybase installation,
> > not with the sybperl installation, but I could be wrong.
> > Also, are the libraries in /opt/sybase/sybase/lib the same as the ones
> > you used to build sybperl?
> > Michael
> > --
> > Michael Peppler -||- Data Migrations Inc.
> > email@example.com -||- http://www.mbay.net/~mpeppler
> > Int. Sybase User Group -||- http://www.isug.com
> > Sybase on Linux mailing list: firstname.lastname@example.org
Michael Peppler -||- Data Migrations Inc.
email@example.com -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com
Sybase on Linux mailing list: firstname.lastname@example.org