Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to setup php with oci8 support. I think I've configured all correctly before starting with oci, here is how I tried to start the install :

./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

I don't have root access so I have to install all manually. Anyways the error I get after I start make install is :

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

And I just have no idea what went wrong there nor what to do next. Anyone had similar issue and resolved it?

share|improve this question

migrated from Dec 26 '11 at 14:19

This question came from our site for professional and enthusiast programmers.

up vote 4 down vote accepted

I think your clntsh library is a 32 bit and you system 64 bit(or reverse case), you have to make sure the library is compiled for the same architecture as the one you are currently running or ld won't be able to use it.

share|improve this answer

Usually "make install" script require "root" access ...simply because it copy some files in some system directories
On which distro, you are running ?
Have you write access to "/common_share/APACHE/" ?

Can't you ask to the administrator of the machine to install php for you ?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.