libclntsh.so.11.1: cannot open shared object file


  程序执行时会提示以下错误:

 libclntsh.so.11.1: cannot open shared object file: No such file or directory


   解决方法为:

The libs are located in /u01/app/oracle/product/11.2.0/xe/lib (For Oracle XE) or similar.

You should add this path to /etc/ld.so.conf or if this file shows only an include location, as in a separate file in the /etc/ld.so.conf.d directory

I have oracle.conf in /etc/ld.so.conf.d, just one file with the path. Nothing else.

Of course don't forget to run ldconfig as a last step.

你可能感兴趣的:(libclntsh.so.11.1: cannot open shared object file)