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 MBAY dot NET>
Subject: Re: Error in running Sybperl CGI under Apache (Win32)
Date: Feb 5 1998 6:33PM

HaiderAziz@caspian.com wrote:

> 
> However, when I try to call a simple script with Sybperl calls via
> Apache 'cgi-bin' I get this error in 'error_log':
> 
> ---------
> [Thu Feb 05 16:36:57 1998] Server configured -- resuming normal
> operations
> /Web/cgi-bin/html_tst.pl: my: command not found

That looks suspiciously like a perl4 error message (or maybe even 
shell, or ???)

> 
> So I wrote another script that explicitly gives the path to the Sybperl
> libs:
> 
> ------------------
> #!/perl/bin/perl.exe
> # Format sql output in an HTML3 table:
> print "Context-type: text/html\n\n";
> print "Before $ENV{SYBASE}\n
\n"; > print "Before $ENV{PERL5LIB}\n
\n"; > $ENV{SYBASE} = "c:\\sybase"; > $ENV{PERL5LIB} = "c:\\perl\\lib;c:\\perl\\lib\\site"; Put these assignements in a BEGIN{} block: BEGIN { $ENV{SYBASE} = "c:\\sybase"; $ENV{PERL5LIB} = "c:\\perl\\lib;c:\\perl\\lib\\site"; } otherwise the 'use' command below happens *before* the assignements to %ENV. That should help. Michael -- Michael Peppler -||- Data Migrations Inc. mpeppler@datamig.com -||- http://www.mbay.net/~mpeppler