Oh Wisest among the Wise,

I humbly apologize for my ignorance, as I am trying to reproduce a connection to an Oracle Data Base from a working one in another machine and I am getting the next compilation error:

Can't load '/soft/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libclntsh.so.11.1: cannot open shared object file: No such file or directory at /soft/perl-5.10.1/lib/5.10.1/x86_64-linux-thread-multi/DynaLoader.pm line 200. at /users/rum00/exploit/script/rum_verify_database_connection.pl line 19

I have added a debug line before the line 200 in DynaLoader.pm line 200.

print "========> $file\n"; my $libref = dl_load_file($file, $module->dl_load_flags) or croak("Can't load '$file' for module $module: ".dl_error());

Obtained:

========> /soft/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux-thread-multi/auto/DBI/DBI.so

========> /soft/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux-thread-multi/auto/DBD/Oracle/Oracle.so

Then I checked these files and their permissions, Obtaining:

____________________________

$ ls -ltr /soft/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux-thread-multi/auto/DBI | grep DBI.so

> -r-xr-xr-x 1 root sys 150632 Jan 24 2013 DBI.so

$ ls -ltr /soft/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux-thread-multi/auto/DBD/Oracle | grep Oracle.so

> -r-xr-xr-x 1 root sys 296365 Apr 30 2013 Oracle.so

____________________________

So the modules do exist, in the expected place, they do have the right permissions... what could be happening that they can't be loaded?

Thank you in advance, Ramen


In reply to Can't load '/soft/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux-thread-multi/auto/DBD/Oracle/Oracle.so' by luxAeterna

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.