I am trying to install PHP5.0.3 on SuSe Linux Pro 9.1 to connect with Oracle 10g. I have Apache2 installed and running successfully. When I issue:

./configure --with-oracle=$oracle_HOME --with-oci8=$oracle_HOME/ --enable-so --with-apxs2=/usr/sbin/apxs2 --enable-sigchild --without-mysql

I get the following error:
checking Oracle version... configure: error: Oracle-OCI8 needed libraries not found

I have the full database running on the machine so I have a feeling the libraries are there. I have seen some reference to this problem and editing the configure file. Any thoughts?

    A couple of things to try.

    Did you install the Oracle client or just the DB? The Oracle client needs to be installed and configured.

    Does the user you are installing PHP with (root?) know where $oracle_HOME is? If not, set the environment variable or point the PHP configure option to the Oracle home path (ie; --with-oci8=/home/oracle.

    Maybe that will help.

      Write a Reply...