Hi all,

I'm fiddling with PAR and got stuck on the following:

I'm working with 2 solaris boxes - one with Oracle 10 and one with Oracle 9. Since I want move a pp'd executable from one box to the other (don't want to worry about having identical env's), I thought of bundling Oracle libs into my PAR file like such:
pp -z 9 -v 3 -p -o MYBUNDLE.par \ -M MY_DBI_WRAPPER_MODULE \ -l libclntsh.so.10.1 \ -l libnnz10.so \ script.pl
However, when I run a script which does
use PAR 'MYBUNDLE.par'; use MY_DBI_WRAPPER_MODULE; ...
I get the following error:
install_driver(Oracle) failed: Can't load '/var/tmp/par-myuser/cache-8 +e6048b78729baef2dc5e08b6cb2d6fbf6d79bf9/08708f45.so' for module DBD:: +Oracle: ld.so.1: myscript.pl: fatal: libclntsh.so.10.1: open failed: +No such file or directory at /path/to/perl/lib/5.10.0/sun4-solaris/Dy +naLoader.pm line 203. at /path/to/perl/lib/site_perl/5.10.0/PAR/Heavy.pm line 109 Compilation failed in require at (eval 27) line 3. Perhaps a required shared library or dll isn't installed where expecte +d at MY_DBI_WRAPPER_MODULE.pm line 83
When I check in the /var/par-user/cache directory, I do see file 08708f45.so there and has good permissions.

Any idea what I'm doing wrong or if what I want is at all possible?

Thanks in advance

In reply to PAR+DBD::Oracle assistance by Viko

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.