Up Prev Next
From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: Re: Sybperl problem
Date: Oct 7 1997 10:59PM
Jagadeesan Manivannan wrote:
> I have a perl with sybperl script which runs fine
> when run in UNIX prompt. runs fine. But
> the same script when run run under http server
> complains with the following error message.
> The https server is running under solaris.
> Can't load '/usr/local/perl/18.104.22.168/solaris/lib/site_perl/sun4-solaris/auto/Sybase/DBlib/DBlib.so'
> for module Sybase:
> :DBlib: ld.so.1: /usr/local/bin/perl: fatal: libsybdb.so: can't open file: errno=2 at
> /lib/DynaLoader.pm line 140.
> Can someone tell me what could be the problem ?
Read the FAQ. The problem is that your copy of DBlib.so seems to
need LD_LIBRARY_PATH being set (maybe the Sybase libraries have been
moved, or the modules were built on another system).
In any case, you need to either set LD_LIBRARY_PATH in your http
configuration (don't ask me how to do it - it depends on your
http server) or use a wrapper around your script that essentially
with appropriate values for 'realScriptName' and /usr/local/sybase,
PS - do yourself a favor, get CGI.pm and use that instead of cgi-lib.pl
Michael Peppler -||- Data Migrations Inc.
firstname.lastname@example.org -||- http://www.mbay.net/~mpeppler