Bug #39312 [Com]: Cannot install PDO_OCI

From: Date: Mon, 02 Dec 2013 06:27:13 +0000
Subject: Bug #39312 [Com]: Cannot install PDO_OCI
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183043@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=39312&edit=1

 ID:                 39312
 Comment by:         vipul dot jadvani at gmail dot com
 Reported by:        andrew dot nagy at villanova dot edu
 Summary:            Cannot install PDO_OCI
 Status:             Closed
 Type:               Bug
 Package:            PDO related
 Operating System:   Linux
 PHP Version:        5.2.9
 Assigned To:        sixd
 Block user comment: N
 Private report:     N

 New Comment:

Hello ,
 I installed the instantclient library and when I try to run configure I get the following error:
checking for oci.h... configure: error: I'm too dumb to figure out where the include dir is in
your instant client install

my oracle instantclient installed in /usr/lib/oracle/11.2/client/lib directory and libclntsh.so.11.1
file is in  /usr/lib/oracle/11.2/client/lib/libclntsh.so.11.1  directory. 

There is .h ectentions file resides in /usr/include/oracle/11.2/client directory. i configure path
but it display error like above .
so please help me.


Previous Comments:
------------------------------------------------------------------------
[2011-04-04 18:54:54] sixd@php.net

Felipe merged a fix to remove the hardcoded .so paths.
http://svn.php.net/viewvc?view=revision&revision=309892

A new bug http://bugs.php.net/bug.php?id=54451
has been logged for the Ubuntu install issue.

------------------------------------------------------------------------
[2011-03-30 19:44:20] sixd@php.net

There seem to be a number of overlapping issues in this bug some of which have been fixed by now.

See http://bugs.php.net/bug.php?id=44989
Note the use with RPMs only requires the top level path /usr and
the version number should either be 10.2.0.4 or 11.2 (not 11.2.0.2) depending on which Instant
Client you use.

Also support for 11.2 added in http://svn.php.net/viewvc?view=revision&revision=294487


The only obviously outstanding issue is to change from hardcoded .so given in the patch inline by:
[2009-01-29 10:37 UTC] michael-ring at t-online dot de

------------------------------------------------------------------------
[2010-06-24 09:30:34] petri dot mahanen at brainalliance dot com

The snapshot will still not compile on OS X as the patch of [2009-01-29 09:37 UTC] michael-ring at
t-online dot de has not been applied.

------------------------------------------------------------------------
[2010-03-25 12:12:34] kalle@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/



------------------------------------------------------------------------
[2010-03-16 20:54:32] jbrauer at llu dot edu

I got it to build on Redhat using the instantclient RPM.  Here's what I did.

manually added the following to config.m4 to allow for Oracle instant client 
11.1
(stolen from matts at iastate above)
@@ -7,6 +7,8 @@
   if test -s "$PDO_OCI_DIR/orainst/unix.rgs"; then
     PDO_OCI_VERSION=`grep '"ocommon"' $PDO_OCI_DIR/orainst/unix.rgs | sed
's/[ 
][ ]*/:/g' | cut -d: -f 6 | cut -c 2-4`
     test -z "$PDO_OCI_VERSION" && PDO_OCI_VERSION=7.3
+  elif test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.11.1; then
+    PDO_OCI_VERSION=11.1    
   elif test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.10.1; then
     PDO_OCI_VERSION=10.1    
   elif test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.9.0; then

AND

@@ -119,6 +126,9 @@
     10.2)
       PHP_ADD_LIBRARY(clntsh, 1, PDO_OCI_SHARED_LIBADD)
       ;;
+    11.1)
+      dnl PHP_ADD_LIBRARY(clntsh, 1, PDO_OCI_SHARED_LIBADD)
+      ;;
     *)
       AC_MSG_ERROR(Unsupported Oracle version! $PDO_OCI_VERSION)
       ;;

if you have instant client of lower version its not needed.

Then I re phpize 'd it. and ran configure:
(esimard at mediagrif dot com)'s strace showed me the only dir I needed was /usr

./configure --with-pdo-oci=instantclient,/usr,11.1.0.1

configure, make and make install completed successfully

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=39312


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=39312&edit=1


Thread (35 messages)

« previous php.bugs (#183043) next »