OedipusPrime has asked for the wisdom of the Perl Monks concerning the following question:
I can run the script from the .pl file fine, after including the line unshift(@INC,"/export/home/pguillot/modules/sun4-solaris") so that the DBI module and Oracle driver can be found.
However, after packaging the script with pp -o script.exe -a ~pguillot/modules/sun4-solaris/ billcycle.pl attempting to run the generated executable yields the error
install_driver(Oracle) failed: Can't load '/tmp/par-pguillot/cache-d7f +3e360cc7caa97a798297098048980b6b8989f/bb3f1c9e.so' for module DBD::Or +acle: ld.so.1: script.exe: fatal: /apps/oracle/app/oracle/product/10g +/lib/libclntsh.so.10.1: wrong ELF class: ELFCLASS64 at /usr/local/lib +/perl5/5.8.5/sun4-solaris/DynaLoader.pm line 230. at ../blib/lib/PAR/Heavy.pm line 104 Compilation failed in require at (eval 13) line 3. Perhaps a required shared library or dll isn't installed where expecte +d at script/billcycle.pl line 122
Line 122 is simply
my $dbh = DBI->connect( "dbi:Oracle:" . $db_name , $db_user , $db_pass + , {AutoCommit => 0} ) or die "Fatal Error: Could not connect to the database: " . DB +I->errstr() . "\n";
I'm not very well versed in the use of PP, and am wondering if I'm missing some step which would cause an issue in the linking of the shared libraries. I'd appreciate any help if anyone sees something that jumps out at them here.
Thanks, -Preston
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PP problems finding DBI driver libraries
by almut (Canon) on May 23, 2007 at 23:09 UTC | |
by Zen (Deacon) on May 24, 2007 at 13:33 UTC | |
by OedipusPrime (Initiate) on May 24, 2007 at 17:32 UTC | |
by Zen (Deacon) on May 24, 2007 at 17:49 UTC | |
by OedipusPrime (Initiate) on May 25, 2007 at 18:17 UTC |