|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-05-04 17:46 UTC] brunofr at ioda dot net
Description: ------------ when you try to compile php with pdo it finish with error unknown oracle version ( instantclient 10.2.0.3 install) oci extension compile right. I've reported this in http://pecl.php.net/bugs/bug.php?id=9689 but have not been resolved. If i force PDO_OCI_VERSION=10.2 everything compile correctly. and the extension as far i can test work nicely. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 16:00:01 2025 UTC |
Have make link for all .so into directory lib make link lib32,lib64 to lib but doesn't help so much. the only thing that really help is putting a PDO_OCI_VERSION=10.2 at line 71961 of .configure and every thing compile correctly after that. something is wrong in this block of configure's code echo $ac_n "checking Oracle version""... $ac_c" 1>&6 echo "configure:71938: checking Oracle version" >&5 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_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME.10.1; then PDO_OCI_VERSION=10.1 elif test -f $PDO_OCI_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME.9.0; then PDO_OCI_VERSION=9.0 elif test -f $PDO_OCI_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME.8.0; then PDO_OCI_VERSION=8.1 elif test -f $PDO_OCI_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME.1.0; then PDO_OCI_VERSION=8.0 elif test -f $PDO_OCI_LIB_DIR/libclntsh.a; then if test -f $PDO_OCI_LIB_DIR/libcore4.a; then PDO_OCI_VERSION=8.0 else PDO_OCI_VERSION=8.1 fi else { echo "configure: error: Oracle-OCI needed libraries not found under $PDO_OCI_DIR" 1>&2; exit 1; } fi echo "$ac_t""$PDO_OCI_VERSION" 1>&6 fi But what I can't find where ...Well, that's exactly what ./configure --help says: --with-pdo-oci=DIR PDO: Oracle-OCI support. Default DIR is ORACLE_HOME. You may also use --with-pdo-oci=instantclient,prefix,version to use the InstantClient SDK. For Linux with 10.1.0.3 rpms (for example) use: --with-pdo-oci=instantclient,/usr,10.1.0.3