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: Michael Peppler <mpeppler at peppler dot org>
Subject: RE: Fatal Use Sybase::DBLib
Date: Jun 8 1999 2:15PM

WORENKLEIN, David, GCM writes:
 > Try
 >   BEGIN {
 >     $ENV{LD_LIBRARY_PATH}=...
 >   }

That won't work. You *can't* set LD_LIBRARY_PATH for the current
process, only for children of this process.

 > 
 > Or, try putting your libsybdb.so in a more common place, like /usr/lib

Or using symlinks (/usr/local/lib should work fine).

 > 
 > Or, try building Sybase::DBlib with the -R option.

Normally this option is used by default. 

Michael

 > 
 > > -----Original Message-----
 > > From:	Brazier Stephen F Civ 27 IS/SCOS
 > > [mailto:stephen.brazier@langley.af.mil]
 > > Sent:	Tuesday, June 08, 1999 8:56 AM
 > > To:	SybPerl Discussion List
 > > Subject:	Fatal Use Sybase::DBLib
 > > 
 > > Hello,
 > > 
 > > I have been wrestling with this error to no avail:
 > > 
 > > "Can't load
 > > '/opt/perl5/lib/site_perl/5.00551/sun4-solaris/auto/Sybase/DBlib/DBlib.so'
 > > for module Sybase::DBlib:  ld.so.1: /opt/perl5/bin/perl: fatal:
 > > libsybdb.so: can't open file: errno=2 at
 > > /opt/perl5/lib/5.00551/sun4-solaris/DynaLoader.pm line 168.     
 > > 
 > > ENV values (for reference)
 > > 
 > > SERVER_SOFTWARE: NCSA/1.4.2
 > > GATEWAY_INTERFACE: CGI/1.1
 > > HTTP_ACCEPT_LANGUAGE: en
 > > HTTP_ACCEPT_ENCODING: gzip
 > > SERVER_PROTOCOL: HTTP/1.0
 > > HTTP_ACCEPT_CHARSET: is0-8859-1,#,utf-8
 > > REQUEST_METHOD: GET
 > > SERVER_PORT: 80
 > > HTTP_USER_AGENT: Mozilla/4.5[en](X11;U;SunOS 5.6 sun4m)
 > > PATH: /usr/sbin:/usr/bin
 > > HTTP_CONNECTION: Keep-Alive    
 > > 
 > > perl -v   'This is perl, version 5.005_51 built for sun4-solaris'
 > > 
 > > perl -V  '   ...  Linker and Libraries:
 > >   		ld='gcc', ldflags =' -L/usr/local/lib'
 > > 		libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
 > > 		libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
 > > 		libc=/lib/libc.so, so=so, useshrplib=false,
 > > libperl=libperl.a
 > > 
 > > 	...  and more...  (I have to retype this because the error is on an
 > > internal LAN)
 > > 
 > > This seems to be a path issue.  When I set the
 > > LD_LIBRARY_PATH=/opt/sybase/lib at the command line the script runs at the
 > > command line, but  it dies when called by the browser
 > > (Netscape 4.x)     Netscape runs as Nobody.  I have tried to set the ENV
 > > var at the top of the script but Perl seems to want all of its paths
 > > resolved prior to seeing the script...  
 > > 
 > > Many thanks for all of your thoughts and time,
 > > 
 > > Steve Brazier
 > > stephen.brazier@langley.af.mil
 > > 
 > > 
 > 

-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@peppler.org    -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com