Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

I'm trying to compile PDO_OCI and get "Unsuported Oracle Version 11.2"

722964Mar 12 2010 — edited Nov 22 2010
Here were my steps to get to that point...
I installed the oracle instantclient libs rpm's (basic, devel).

The rpm's installed the client in /usr/lib/oracle/11.2/client/lib (only folders in client are bin/ and lib/ btw).
I compiled pdo and oci8 successfully ... oci8 needed the with-oci8 param added to work pointing at oracle lib's "./configure --with-oci8=instantclient,/usr/lib/oracle/11.2/client/lib"

I tried to compile pdo_oci, and got an error about the sdk header files (couldn't find oci.h)... So i noticed oci.h was in /usr/include/oracle/11.2/client, so I copied all the *.h files to where i thought oracle was trying to look for the files (/usr/lib/oracle/11.2/client/include)...
then running ./configure again gave another error... looks like "./configure --with-pdo-oci=instantclient,/usr/lib/oracle/11.2/client" didnt work ... I looked at the configure script and noticed it was trying to find oracle in $somedir/lib/oracle/$version/client (which it would try to figure out the 2 vars based on the oracle client home you passed)... but the command line (at least in centos5.4 linux) didn't set them correctly from the parameter I passed here i think:

PDO_OCI_IC_PREFIX="`echo $PDO_OCI_DIR | cut -d, -f2`"
PDO_OCI_IC_VERS="`echo $PDO_OCI_DIR | cut -d, -f3`"


... so based on those args it was looking for, i just ran " ./configure --with-pdo-oci=instantclient,/usr,11.2" and that got further (since it just did /usr + /lib/oracle/+ 11.2 /client/include/oci.h) ...
But it errored at the next stage "configure: error: Unsuported Oracle Version! 11.2"...

Anyone know if it should work with 11.2, or maybe the vars arent being set further in the script? or maybe I still am not installing it correctly?

Thanks if anyone can help!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 20 2010
Added on Mar 12 2010
7 comments
5,701 views