Skip to Main Content

OCI 1.4.9 build problem

Gogala MladenNov 16 2012 — edited Nov 27 2012
I've recently installed oci8 on my Fedora box, with Oracle instant client 11.2.0.3.0. Configuration script complained that it cannot see header files, although the necessary instant client packages are installed:

[mgogala@medo ~]$ rpm -qa|grep oracle
oracle-instantclient11.2-precomp-11.2.0.3.0-1.x86_64
oracle-instantclient11.2-sqlplus-11.2.0.3.0-1.x86_64
oracle-instantclient11.2-odbc-11.2.0.3.0-1.x86_64
oracle-instantclient11.2-devel-11.2.0.3.0-1.x86_64
oracle-instantclient11.2-jdbc-11.2.0.3.0-1.x86_64
oracle-instantclient11.2-basic-11.2.0.3.0-1.x86_64

I ended up copying the contents of /usr/include/oracle/11.2/client64 to /usr/lib/oracle/11.2/client64. I also had to copy all the libraries from /usr/lib/oracle/11.2/client64/lib to /usr/lib/oracle/11.2/client64. My PHP is 5.4.8:

[mgogala@medo ~]$ php -v
PHP 5.4.8 (cli) (built: Oct 18 2012 11:47:02)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
[mgogala@medo ~]$


This was not what I would call a "seamless build". Apparently, the configuration script expects instant client to be just an unpacked blob, like for Debian derivatives, not a structured package with bin and lib directories and the headers under /usr/include.

I am running 64 bit FC 17:
[mgogala@medo ~]$ uname -a
Linux medo.home.com 3.6.6-1.fc17.x86_64 #1 SMP Mon Nov 5 21:59:35 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
[mgogala@medo ~]$
Comments
Post Details
Added on Nov 16 2012
3 comments
2,102 views