bitzy790 has asked for the wisdom of the Perl Monks concerning the following question:

Hi, We are having difficulty getting perl to talk to oracle client on hpux 11. Here's the error:
-> ./CreateApplicationList.pl
install_driver(Oracle) failed: Can't load '/opt/perl5/lib/site_perl/5. +8.6/PA-RISC2.0-thread-multi/au to/DBD/Oracle/Oracle.sl' for module DBD::Oracle: No such file or direc +tory at /opt/perl5/lib/5.8.6/P A-RISC2.0-thread-multi/DynaLoader.pm line 230. at (eval 6) line 3 Compilation failed in require at (eval 6) line 3. Perhaps a required shared library or dll isn't installed where expecte +d at ../lib/OracleWebDB.pm line 136 [talon:/home/cb43610/onesrcutil/empmaint/scripts]
-> OracleWebDB.pm is my module that tries to connect. Not sure why this has been do hard! Any help would be greatly appreciated!

Edit by castaway - added code tags

Replies are listed 'Best First'.
Re: perl to oracle client on unix
by dragonchild (Archbishop) on Feb 02, 2005 at 19:51 UTC
    Did anyone install the module DBD::Oracle? Did anyone install the necessary Oraclient libraries? Those are necessary ...

    Being right, does not endow the right to be rude; politeness costs nothing.
    Being unknowing, is not the same as being stupid.
    Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
    Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

      Yes, DBD is installed, and we thought we installed all the necessary Oraclient libs. I was hoping based on the error, someone might now what we missed, or need to change.
        Those two issues are the usual ones. Also - are you using the same Perl as the one you used to install DBD::Oracle? Did you use the same C-compiler when install DBD::Oracle as the one used to compile Perl?

        Another question - what do you get when you type in:

        perl -MDBD::Oracle -e 'print DBD::Oracle->VERSION, $/'

        Being right, does not endow the right to be rude; politeness costs nothing.
        Being unknowing, is not the same as being stupid.
        Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
        Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.