Why is libclntsh.so.10.1 causing DynaLoader.pm line 230 permission denied errors to happen, when attempting to load Oracle.so?
Below is line 230 from Dynaloader.pm
my $libref = dl_load_file($file, $module->dl_load_flags) or
croak("Can't load '$file' for module $module: ".dl_error());
A little bit of background to the problem
Having installed DBD::Oracle my database connect is failing with Can't load Oracle.so
ld.so.1 fatal error libclntsh.so.10.1 permission denied
I've tried reinstalling DBD::Oracle. CPAN doesn't seem that geared up for reinstalling things. (It's a bit
messy.) And it didn't help. The error is still exactly the same.
Not surprisingly running perl cpan as root so the file
/usr/perl5/site_perl/5.8.4/i86pc-solaris-64int/auto/DBD/Oracle/Oracle.so
is owned root:root
as are all my other cpan modules.
Thu Jul 21 13:14:45 2011 error client 192.168.1.101
\tinstall_driver(Oracle) failed: Can't load '/usr/perl5/site_perl/5.8.4/i86pc-solaris-64int/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so.1: perl: fatal: /export/home/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1:
Permission denied at /usr/perl5/5.8.4/lib/i86pc-solaris-64int/DynaLoader.pm line 230., referer: http://192.168.1.130/Wood-Recycling/add-new-customer.html
It's not the file itself because I've overwritten it with another file of the same name and the error is the same. It's not the directory that it's in because I have another localzone with the same file in it and the same file and directory permissions and that one works just fine!
update
Thanks for the suggestions, guys.
The simplest workaround for the moment is to run apache with the group oinstall
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.