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: Jie Gao <J dot Gao at isu dot usyd dot edu dot au>
Subject: =?iso-8859-1?Q?Re=3A_Sybperl_doesn=B4t_work_in_CGI-script?=
Date: Aug 17 1999 10:37PM

On Wed, 18 Aug 1999, Jie Gao wrote:

> Date: Wed, 18 Aug 1999 08:30:06 +1000 (EST)
> From: Jie Gao 
> Reply-To: SYBPERL-L@listproc.net
> To: SybPerl Discussion List 
> Subject: Re: Sybperl doesnīt work in CGI-script
> 
> On Tue, 17 Aug 1999, Philipp Ross wrote:
> 
> > On my workstation Sybperl works very well but not on the server where
> > the CGI-scripts I wrote are supposed to run. On both machines I
> > compiled perl 5.00503, sybperl 2.10 and apache 1.3.6. The system is
> > based on SUSE-Linux 6.0. And both machines have the same version of 
> > Sybase libraries and includes. What else is important for the
> > behavior of Sybperl?
> > 
> > Most surprising, the sybperl works even on the server if the script is
> > run from the commandline but not as a CGI-script. The Environment-
> > Variable SYBASE is set in http.conf on both machines.
> > 
> > CGI-scripts do not even try to connect to the Sybase Server. dblogin()
> > fails before. I canīt get the server to tell me whatīs going wrong. I
> > know i should use a message handler, but i donīt know how. Could someone
> > please edit the test-script below? (sorry for that)
> 
> If you are using conventional CGI, chances are the LD_LIBRARY_PATH is not set
> by the Web server. You can either set it up in your httpd.conf, or if you
> want that for the reason of messing up other programs, you'd have to write
 ^don't

> a shell wrapper for it.
> 
> LD_LIBRARY_PATH=/path/to/open_client/lib; export LD_LIBRARY_PATH
> 
> 
> Jie
> 
>