ciphermethod.com

Oracle libclntsh cannot open/no such file

by on Dec.02, 2015, under Linux

Can’t load ‘/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so’ for module DBD::Oracle: libclntsh.so.11.1: cannot open shared object file: No such file or directory at /usr/lib64/perl5/DynaLoader.pm line 200

add $ORACLE_HOME/lib to ld.so.conf.d
run ldconfig

Example:
# ~hopkins_j/perltest
Can’t load ‘/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so’ for module DBD::Oracle: libclntsh.so.11.1: cannot open shared object file: No such file or directory at /usr/lib64/perl5/DynaLoader.pm line 200.
at /export/home/hopkins_j/perltest line 13
Compilation failed in require at /export/home/hopkins_j/perltest line 13.
BEGIN failed–compilation aborted at /export/home/hopkins_j/perltest line 13.
# vi /etc/ld.so.conf.d/oracle-client.conf
# cat oracle-client.conf
/u01/app/oracle/product/11.2.0/dbhome_1/lib
# ldconfig
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmcfhc.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmastk.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmevq.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmefsqlt.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmefsql.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmevsp.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmefojmx.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmefos.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmeoci.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmadm.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmefpfa.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmefut.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmemso.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmefdms.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmadbg.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmcfsga.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmarl.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmevc.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmasf.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmefvr.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmefsp.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmefud.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmefport.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmalk.so.0 is empty, not checked.
ldconfig: File /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnmefw.so.0 is empty, not checked.
ldconfig: /u01/app/oracle/product/11.2.0/dbhome_1/lib/libexpat.so.1 is not a symbolic link
# ~hopkins_j/perltest
Hello World

No comments for this entry yet...

Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

But Wait, There's More!

A few highly recommended friends...