|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35471 Oracle Instant Client fails to locate includes/libs
Submitted: 2005-11-29 11:46 UTC Modified: 2005-12-02 08:39 UTC
From: jeppe at arabuusimiehet dot com Assigned: tony2001 (profile)
Status: Closed Package: OCI8 related
PHP Version: 5.1.1 OS: RHEL4 X86_64
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: jeppe at arabuusimiehet dot com
New email:
PHP Version: OS:


 [2005-11-29 11:46 UTC] jeppe at arabuusimiehet dot com
When using Oracle Instant Client 10.2 on x86_64 the configure
script only tries the 'lib' dir, not 'lib64'.

OCISDKRPMINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | sed -e 's!^/usr/lib/oracle/\(.*\)/client/lib[/]*$!/usr/include/oracle/\1/client!`'

If I change that line s/lib/lib64/ everything works fine.

Reproduce code:
./configure --with-oci8-instant-client=/usr/lib64/oracle/

Expected result:
configure running thru ok.

Actual result:
checking Oracle Instant Client SDK header directory... configure: error: Oracle Instant Client SDK header files not found


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-29 11:59 UTC]
How did you install OIC and where did you get these packages?
 [2005-11-29 12:08 UTC] jeppe at arabuusimiehet dot com
Sorry to not include that info in the beginning.

Since Oracle does not provide x86_64 RPM's I used these:
 [2005-11-29 13:10 UTC]
Did you install the -devel package(s)?
 [2005-11-29 13:14 UTC]
This was missing:


And the oci config.m4 should use $PHP_LIBDIR instead of lib,
assigned to the maintainer.
 [2005-11-29 13:36 UTC]
First of all, please use new OCI8 from PECL instead of the bundled one. It was too late to add it to 5.1, but it'll appear in 5.1.2.

And regarding your problem: grab the sources at, put them instead of your ext/oci8 and apply this patch:
./buildconf --force 
./configure --with-oci8=instantclient,/usr/lib64/oracle/ 
the patch should fix the issue.
 [2005-12-02 08:39 UTC] jeppe at arabuusimiehet dot com
This fixed it. Thanks.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Dec 07 06:03:49 2022 UTC