加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

在linux上安装PHP

发布时间:2020-12-13 17:05:05 所属栏目:Linux 来源:网络整理
导读:我正在尝试使用oci8支持设置php.我认为在开始使用oci之前我已经正确配置了所有内容,以下是我尝试启动安装的方法: ./configure -prefix=/common_share/APACHE/server --with-apxs2=/common_share/APACHE/server/bin/apxs ./configure --with-oci8=instantcli
我正在尝试使用oci8支持设置php.我认为在开始使用oci之前我已经正确配置了所有内容,以下是我尝试启动安装的方法:
./configure -prefix=/common_share/APACHE/server --with-apxs2=/common_share/APACHE/server/bin/apxs ./configure --with-oci8=instantclient,/common_share/APACHE/oracle-cli --with-libxml-dir=/common_share/APACHE/libxml --with-config-file-path=/common_share/APACHE/php/php.ini

我没有root访问权限,所以我必须手动安装所有.无论如何,我开始make install后得到的错误是:

/usr/bin/ld: skipping incompatible /common_share/APACHE/oracle-cli/libclntsh.so when searching for -lclntsh
/usr/bin/ld: cannot find -lclntsh
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

我不知道那里出了什么问题,也不知道下一步该做什么.有人有类似的问题并解决了吗?

解决方法

我认为您的clntsh库是一个32位而您的系统是64位(或反向情况),您必须确保库的编译与您当前运行的库相同,或者ld将无法使用它.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读