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: HaiderAziz at caspian dot com
Subject: RE: Error in running Sybperl CGI under Apache (Win32)
Date: Feb 6 1998 10:42AM

> 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.
------------------

What does it mean? None of the DB-lib calls are working! Any ideas?!
Regards,
Haider

> ----------
> From: 	Michael Peppler[SMTP:mpeppler@mbay.net]
> Reply To: 	SYBPERL-L@trln.lib.unc.edu
> Sent: 	05 February 1998 18:33
> To: 	SYBPERL-L@trln.lib.unc.edu
> Subject: 	Re: Error in running Sybperl CGI under Apache (Win32)
> 
> 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 > ********************************************************************* Caspian is not responsible for any securities related recommendation, solicitation, offer or agreement, or any information about any transaction contained in this communication. *********************************************************************