Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: Re: Sybperl problem
Date: Oct 24 1997 8:46PM

VanDyke, Ronny wrote:
> I have installed Sybperl (2.07)  with Perl 5.003 to access Sybase 10.0.2
> on Solaris.
> I need to use Sybperl as a web server CGI.
> I wrote a little pgm and it works great when invoked from command line.
> However, I get the following error when I run it as a CGI process:
> at /opt/perl-5.003/lib/site_perl/Sybase/ line 304 BEGIN
> failed--compilation aborted at
> /usr2/web/home/htbin/ line 33.
> The above error is triggered by the "use Sybase::DBlib" line in the Perl
> pgm.
> Sybperl is installed using 'dynamic' linking.
> Anyone have any ideas on what might be going on?

Two possibilities:

1. The SYBASE environment variable isn't set.
   To correct, add

	   $ENV{SYBASE} = "/path/to/sybase";

    to the top of your script.

2. Your installation requires LD_LIBRARY_PATH to run.
   This is a little trickier to fix.

   Depending on your http server type, it may be possible to
   set LD_LIBRARY_PATH in the http server's configuration
   Or you could re-install sybperl making sure that the
   LD_RUN_PATH variable is set correctly during the build (this
   should normally be automatic)
   Or you can write a little shell wrapper that sets LD_LIBRARY_PATH
   and then calls the real script.

    Are you confused yet? :-)

Michael Peppler       -||-  Data Migrations Inc.  -||-