Ubuntu – Oracle – oci8 install results in
oci.h: No such file or directory

Assuming you have the instant client installed, a symbolic link needs to be made for the header files in order for pecl to pick it up during the oci8 install… but where to link it to?

Since I was running Ubuntu 11.04, I figured this article would fix my problem.

Everything is kosher until you hit this:

sudo ln -s /usr/include/oracle/11.2/client $ORACLE_HOME/include

Instead of the above linking, use this (until they change it again):

sudo ln -s /usr/include/oracle/11.2/client $ORACLE_HOME/rdbms/public

This fixed my pecl install of oci8 on Ubuntu 11.04, hope it helps someone else.

~ by ityndall on September 8, 2011.

Leave a Reply