ID:               41289
 User updated by:  brunofr at ioda dot net
 Reported By:      brunofr at ioda dot net
-Status:           Feedback
+Status:           Closed
 Bug Type:         Compile Failure
 Operating System: Linux OpenSUSE 10.1
 PHP Version:      5.2.2
 Assigned To:      wez
 New Comment:

Thank tony, I think i shouldn't try to compile somewhere in the middle
of the night, 
I've replace the last , by / and that's why it doesn't work.

So now closing this.


Previous Comments:
------------------------------------------------------------------------

[2007-05-11 12:00:12] [EMAIL PROTECTED]

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


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

[2007-05-05 13:38:37] brunofr at ioda dot net

Ok find a solution that's not a craky hack

Before ./configure 
# For Oracle client
export
LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.3/client:$LD_LIBRARY_PATH
export ORACLE_HOME=/usr/lib/oracle/10.2.0.3/client

configure option for oracle :
 --with-oci8=shared,instantclient,$ORACLE_HOME,10.2.0.3 \
 --with-pdo-oci=shared,instantclient,$ORACLE_HOME,10.2.0.3 \

And everything goes nicely ... 

I think this trick should be added somewhere in the php website doc for
the oci and pdo_oci compilation.
Or/And in the configure --help 

Good work guys as always :-))
If someone could confirm this recette, we can close the bug.

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

[2007-05-05 13:10:14] [EMAIL PROTECTED]

Did you try using this syntax:
--with-pdo-oci=instantclient,/usr,10.2.0.3 ?

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

[2007-05-05 13:04:11] brunofr at ioda dot net

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 ...

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

[2007-05-05 11:41:01] [EMAIL PROTECTED]

Assigned to the maintainer.
You can put the libraries to /usr/lib/oracle/10.2.0.3/client/lib/ for
now, it should help.

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

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
    http://bugs.php.net/41289

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

Reply via email to