centos编译安装oci8报错cannot find -lclntsh

centos编译安装oci8报错

cannot find -lclntsh

改用rpm包安装

oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
oracle-instantclient12.1-tools-12.1.0.2.0-1.x86_64.rpm

安装

rpm -Uvh oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
rpm -Uvh oracle-instantclient12.1-tools-12.1.0.2.0-1.x86_64.rpm

pecl安装oci8

pecl install oci8

成功

你可能感兴趣的:(php,rpm,php-extension,oci8)