Hi,
        I've getting the following error trying to use the DBD::Oracle
module with Perl 5.6.x on HP-UX 11.  The script I'm running is:

#!/usr/bin/perl

use DBI;

@available_drivers = DBI->available_drivers;
foreach $driver (@available_drivers) {
        print "Driver available - $driver\n";
        @data_sources = DBI->data_sources($driver);
        if($#data_sources > 0) {
                foreach $source (@data_sources) {
                        print "$driver => $source\n";
                }
        }
}


and the result I'm getting is:

Driver available - ExampleP
Driver available - Oracle
install_driver(Oracle) failed: Can't load
'/opt/perl5/lib/site_perl/5.6.0/PA-RIS
C1.1/auto/DBD/Oracle/Oracle.sl' for module DBD::Oracle: No such file or
directory at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line 200.
$ t (eval 2) line 3
Compilation failed in require at (eval 2) line 3.
Perhaps a required shared library or dll isn't installed where expected

However the file 'Oracle.sl' is definitely there.  I'm running Perl 5.6.1 on
one box and Perl 5.6.0 on another and getting exactly the same error.  I'm
using DBD::Oracle 1.17 in both cases.
        I'm not certain what version of DBI it is, There is a version
number, 11.2, in the header files but that does not seem to correspond to
the version numbers on CPAN.  There's probably a better way of determining
the version number of a module, perhaos someone could enlighten me there.

I found a posting of the 16th of Jan on this mailing list describing exactly
the same problem.  Here is the link to that posting.
http://www.mail-archive.com/dbi-users@isc.org/msg15766.html
        Does anybody know what the issue is or how to fix it?



Bruce Ashton
Java Developer
Product Development Branch
Commercial Division
ext. 4560






Reply via email to