libclntsh.so.11.1: cannot open shared object file

来源:互联网 发布:淘宝企业开店怎么注册 编辑:程序博客网 时间:2024/06/06 09:58


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

 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.

原创粉丝点击