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: Error in running Sybperl CGI under Apache (Win32)
Date: Feb 6 1998 10:20PM wrote:
> > Michael,
> >
> Thanks for your help! Yes you were absolutely right, the first script
> failed because it didn't have a '#!/perl/bin/perl.exe' at the top of the
> file so Apache was trying to run it with bash. However, I am still
> getting this in the 'error_log':
> ------------------
> DB-Library error:
>         Net-Lib protocol driver call to connect two endpoints failed
> Operating-system error:
>         Error in creating a socket - Error is 10106
> Can't call method "dbuse" without a package or object reference at
> /Web/cgi-bin/html_tst_pl line 17.
> ------------------

Something is wrong with your environment when the script is run
as a CGI, and this causes the connection to Sybase to fail.

I don't know *what* is wrong, though.

Try writing a little script that does something like:


print "Content-Type/text-html\n\n";
print "
foreach (keys(%ENV)) {
    print "$_: $ENV{$_}\n";
print "
\n"; __END__ and see which environment variables seem to be wrong (like SYBASE, etc.). Michael -- Michael Peppler -||- Data Migrations Inc. -||-