Here's a hopefully simple question, but it's driving me crazy...

setup is HPUX11.11, perl 5.8.0, dbi-1.28, dbd-oracle-1.12.

perl compiles and works fine. so does dbi. dbd-oracle compiles ok,
too.  but here is the problem...

in order to get the dbd-oracle to pass its tests, I must set the
following shell variables:
  
   LD_RUN_PATH=/opt/oracle/product/8.1.7/lib
   SHLIB_PATH=/opt/oracle/product/8.1.7/lib

(actually, I set them *before* I make dbd-oracle)

after I make install the dbd, everything works fine *if* I
set the SHLIB_PATH variable before invoking the perl script.
However, if I *don't* set SHLIB_PATH, I get the error:

install_driver(Oracle) failed: Can't load 
'/opt/perl/lib/site_perl/5.8.0/PA-RISC2.0/auto/DBD/Oracle/Oracle.sl' for module
DBD::Oracle: No such file or directory at /opt/perl/lib/5.8.0/PA-RISC2.0/DynaLoader.pm 
line 229.

So my question really is, should I *have* to set SHLIB_PATH in the shell before
running perl scripts that use dbd-oracle, or is there a way to force it to know
to use the library at /opt/oracle/product/8.1.7/lib ?

(Obviously, this is a shared-library kind of issue, but I'm not a "real" programmer,
so I don't know the details of how this works - please be nice !)

BTW, if this were just a bunch of perl scripts, I wouldn't have a problem telling
the users to set the SHLIB_PATH variable before using them - however, the scripts
are actually cgi scripts, intended to be invoked from a web server, so before I
go and kludge up the Apache config to include this variable, I want to make sure
that I really *should* be doing that...


    Thanks !

      John











-- 
#########################################################################
# John Foley - LAN Manager          #    Maildrop: IL02 - RM 0206       #
# Schaumburg BTS CoE                # SMTP E-MAIL: [EMAIL PROTECTED]   #
# Motorola                          # X400 E-MAIL: [EMAIL PROTECTED] #
# 1301 East Algonquin Rd.           #       Phone:  (847) 576-8719      #
# Schaumburg, Illinois 60196  (USA) #         Fax:  (847) 538-3765      #
#########################################################################
                   (this email sent using Netscape on NT)

Reply via email to