Re: Bundle::DBI and DBD::Oracle failing

John R Pierce <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <[email protected]>
On 6/22/2016 2:05 PM, Bruce Johnson wrote:
>> On Jun 22, 2016, at 1:34 PM, John R Pierce <[email protected] 
>> <mailto:[email protected]>> wrote:
>>
>> if root installed it to /root, no other user can see or access that.
>>
>>
> running cpan as root is fine, since that doesn’t affect the 
> permissions of the final perl executables. The only thing it affects 
> is keeping track of what has been installed via cpan, since the .cpan 
> metadata lives in root’s home directory. 

but the OP also said...

> perl /stl/bin/test.pl
>
> install_driver(Oracle) failed: Can't load 
> '/root/perl5/lib/perl5/x86_64-linux-thread-multi/auto/DBD/Oracle/Oracle.so' 
> for module DBD::Oracle: libstdc++.so.5: cannot open shared object file

which suggests Oracle.so was built under /root/perl5

OTOH, as others suggested, the OP probably needs to 'yum install 
compat-libstdc++'  (for RHEL/centos 6, which I believe is what the OP has)



-- 
john r pierce, recycling bits in santa cruz
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.