在Linux上安装PHP

我正在尝试设置与oci8支持的PHP。 我认为我已经configuration所有正确的开始之前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将无法使用它。

通常“make install”脚本需要“root”访问…只是因为它复制某些系统目录中的某些文件
在哪个发行版上运行?
你有写访问“/ common_share / APACHE /”吗?

你不能要求机器的pipe理员为你安装php吗?