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: Robert Seymour <robert_seymour at il dot us dot swissbank dot com>
Subject: Sybperl::DBlib CGI Problems
Date: Feb 26 1996 10:30PM

I'm trying to use Sybase::DBlib to create CGI scripts for  
displaying the contents of a Sybase 4.9 database.  My script works  
just fine from the command line, but when I try to run it as a CGI  
program I get the error:

	Operating-system error: No such file or directory DB-Library:
	Could not open interface file.

Reading the FAQ provided with sybperl-2.03 (I'm using it with Perl  
5.002b3), it seems I need to get the LD_LIBRARY_PATH set for the  
CGI's login.  I tried doing this with a wrapper script which sets  
the LD_LIBRARY_PATH to include libsybdb-4.9.1.a (libsybdb.a), but I  
get a core dump when this is done:

	dlopen: stub interception failed
	zsh: 16516 abort (core dumped)  wire.cgi

I tried the wrapper script as both a /bin/sh script and as a perl  
script and ensured that the variable was exported (and the SYBASE  
and DSQUERY were also set).

Perhaps someone can suggest an ingredient I am missing, as I seem  
to have run out of FAQ or documentation explanations ...

Thanks in advance, Robert Seymour

Robert Seymour                       Swiss Bank Corporation
Business:      (SBCNet)

Statements herein may not reflect the policies of my employer (Swiss Bank).