So I have spent countless hours in the last week trying to successfully compile PHP with Oracle support. I know that I have a working Oracle database because I have accessed it and written a Java application that uses it.
I am running Fedora Core 3 and the regular PHP install for FC3 does not come with Oracle support. I have read lots of things lots of places but I think what I want to use is the OCI functions for PHP. I downloaded the SRPM for PHP and in the SPEC file I added two lines for Oracle support.
--with-oci=/home/user/product/10.1.0/Db_1
--with-oracle=/home/user/product/10.1.0/Db_1
If I do this and run the rpmbuild command, it will fail telling me I am missing need libraries. After hours of tinkering I have discovered that if I remove the --with-oracle line, but leave the oci one, it will compile. Then I can start Apache just fine, but I am presented with an error about the oci functions being unknown. I am assuming because I also need that --with-oracle line. My first question is, is that true?
My second question is, if I do need that --with-oracle line, what should the directory be, and why isn't it the same one as --with-oci.
Do I need anything else installed other than the Oracle database to work? I have seen this Oracle Client thrown around a lot but I was under the impression that isn't needed if you are using the whole Oracle database on the same server.
I really need to get this working. I would appreciate any help anyone can give.