Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Fatal Use Sybase::DBLib
Date: Jun 8 1999 2:14PM
Brazier Stephen F Civ 27 IS/SCOS writes:
> I have been wrestling with this error to no avail:
> "Can't load
> 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.
errno 2 is "File not found".
You need to set LD_LIBRARY_PATH to start with $SYBASE/lib, and then
> 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...
I see you're still using the NCSA http server. I think you need to
hack it to get the LD_LIBRARY_PATH variable passed to child processes,
unless they've added the same functionality as Apache, whereby you can
SetEnv LD_LIBRARY_PATH /opt/sybase/lib
in the httpd.conf file and have it set for all CGI scripts.
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