程序執行時會提示以下錯誤:
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.