2 Replies Latest reply on Jul 27, 2006 12:33 PM by 525320

    nstalling PHP and the Oracle 10g Instant Client for Linux

    446146
      Hello,

      i'va a problem when compil php 5.0.4 with "--with-oci8-instant-client" option.

      I followed this documentation
      http://www.oracle.com/technology/pub/notes/technote_php_instant.html

      But when the ./configure is finished, i've this message in the debug.log file:

      ./conftest: error while loading shared libraries: libnnz10.so: cannot open shared object file: No su
      ch file or directory

      But when i go to this directory, the libnnz10.so is well there!

      Any suggestion?

      Thanks!!

      This is the full debug.log file:
      * * * * * * * * * * * * * * * * * *
      CONFIGURE: './configure' '--with-oci8-instant-client' '--disable-all'
      CC: gcc
      CFLAGS: -g -O2
      CPPFLAGS:
      CXX:
      CXXFLAGS:
      INCLUDES: -I/usr/include/oracle/10.1.0.3/client
      LDFLAGS: -Wl,-rpath,/usr/lib/oracle/10.1.0.3/client/lib -L/usr/lib/oracle/10.1.0.3/client/lib
      LIBS: -lcrypt -lresolv -lm -ldl -lnsl -lclntsh -lcrypt
      DLIBS:
      SAPI: cgi
      PHP_RPATHS: /usr/lib/oracle/10.1.0.3/client/lib
      uname -a: Linux linuxtest 2.6.11.4-20a-default #1 Wed Mar 23 21:52:37 UTC 2005 i686 i686 i386 GNU/
      Linux

      gcc -o conftest -g -O2 -Wl,-rpath,/usr/lib/oracle/10.1.0.3/client/lib -L/usr/lib/oracle/10.1.0.3/c
      lient/lib conftest.c -lcrypt -lresolv -lm -ldl -lnsl -lclntsh -lcrypt 1>&5
      ./conftest: error while loading shared libraries: libnnz10.so: cannot open shared object file: No su
      ch file or directory

        • 1. Re: nstalling PHP and the Oracle 10g Instant Client for Linux
          446146
          Ok... i've found the solution... :-)

          Just add the full path to the lib in the ld.so.conf file and execute the ldconfig command.

          And it's work! Good!
          • 2. Re: nstalling PHP and the Oracle 10g Instant Client for Linux
            525320
            Hello,

            i'va a problem when compil php 5.0.4 with
            "--with-oci8-instant-client" option.

            I followed this documentation
            http://www.oracle.com/technology/pub/notes/technote_ph
            p_instant.html

            But when the ./configure is finished, i've this
            message in the debug.log file:

            ./conftest: error while loading shared libraries:
            libnnz10.so: cannot open shared object file: No su
            ch file or directory

            But when i go to this directory, the libnnz10.so is
            well there!

            Any suggestion?

            Thanks!!

            This is the full debug.log file:
            * * * * * * * * * * * * * * * * * *
            CONFIGURE: './configure'
            '--with-oci8-instant-client' '--disable-all'
            CC: gcc
            CFLAGS: -g -O2
            CPPFLAGS:
            CXX:
            CXXFLAGS:
            INCLUDES: -I/usr/include/oracle/10.1.0.3/client
            LDFLAGS:
            -Wl,-rpath,/usr/lib/oracle/10.1.0.3/client/lib
            -L/usr/lib/oracle/10.1.0.3/client/lib
            IBS: -lcrypt -lresolv -lm -ldl -lnsl -lclntsh
            -lcrypt
            DLIBS:
            SAPI: cgi
            PHP_RPATHS: /usr/lib/oracle/10.1.0.3/client/lib
            uname -a: Linux linuxtest 2.6.11.4-20a-default #1
            Wed Mar 23 21:52:37 UTC 2005 i686 i686 i386 GNU/
            Linux

            gcc -o conftest -g -O2
            -Wl,-rpath,/usr/lib/oracle/10.1.0.3/client/lib
            -L/usr/lib/oracle/10.1.0.3/c
            ient/lib conftest.c -lcrypt -lresolv -lm -ldl -lnsl
            -lclntsh -lcrypt 1>&5
            /conftest: error while loading shared libraries:
            libnnz10.so: cannot open shared object file: No su
            ch file or directory
            Yuo ave to export LD_LIBRARY_PATH before: make install