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: mpeppler at itf dot ch (Michael Peppler)
Subject: Re: CTlib problems
Date: Feb 9 1996 7:00AM

> From: kkitts@uhd2.uhd.com (Kevin Kitts)
> 
> I tried to type a simple CTlib example in and got the following error message:
> 
> Can't load '/usr/local/lib/perl5/sun4-solaris/auto/Sybase/CTlib/CTlib.so for
> module Sybase::CTlib: ld.so.1: /usr/local/bin/perl: fatal: libctl.so: can't
                                                             ^^^^^^^
Is that a typo? I have libct.so and libtcl.so here...

> open file: errno=2 at /usr/local/lib/perl5/DynaLoader.pm line 136.

errno=2 means 'No such file'.

This *probably* means that the dynamic loaded (ld.so) can't find the
library file. Remember that ld.so uses information embeded in CTlib.so
or in the perl binary, or the directories specified by LD_LIBRARY_PATH
to look for shared libraries. It may not find libraries in $SYBASE/lib
if (for some reason) that indormation is not written to CTlib.so (or if
$SYBASE has moved).

The solution is to add $SYBASE/lib to the LD_LIBRARY_PATH environment
variable.

Michael