/usr/lib64/php/modules/pdo_oci.so (libclntsh.so.18.1: cannot open shared object file: No such file or directory)解决方案

出现报错:

/usr/lib64/php/modules/pdo_oci.so (libclntsh.so.18.1: cannot open shared object file: No such file or directory)

八成是装oracle-instantclient18.3-basic-18.3,php的驱动碰到的。

解决办法也很简单,我是rpm安装的,所以执行如下指令:

sh -c "echo /usr/lib/oracle/18.3/client64/lib > /etc/ld.so.conf.d/oracle-instantclient.conf"
ldconfig

之后问题即可解决。


未经允许不得转载:阿藏博客 » /usr/lib64/php/modules/pdo_oci.so (libclntsh.so.18.1: cannot open shared object file: No such file or directory)解决方案