note 58513 added to install.unix

From: Date: Sun, 06 Nov 2005 23:42:16 +0000
Subject: note 58513 added to install.unix
Groups: php.notes 
Request: Send a blank email to php-notes+get-98177@lists.php.net to get a copy of this message
Hi, PROBLEM: ./configure PHP --with-oci8 fails with unresolved references such as __rpc_thread_destroy@GLIBC_2_2_3_... ONE SOLUTOIN FOR SOLVING PHP ./configure RESULTING IN __rcp_thread_destroy@GLIBC_2_2_3_... AND UNRESOLVED REFERENCES WITH ORACLE OCI8 KEYWORDS: PHP OCI OCI8 NET8 ./configure __rpc_thred_destroy UNRESOLVED REFERENCES For building php-4.4.1 or later with oci8, make sure your LD_LIBARRY_PATH has at a minimum the following directories in its path for Oracle8i 8.1.5 or later, Oracle9i 9.0.2 or later, and Oracle9i Release 2: 9.2.0.4 or later, do the following: Note: We are not using the Oracle Instant Client here. This assumes you have an actual Oracle Installation. 1. Set ORACLE_HOME Example using Oracle 9i Relase 2 -- 9.2.0.5: ORACLE_HOME=/opt/app/oracle/product/9iR2 2. Set LD_LIBRARY_PATH with: LD_LIBRARY_PATH=$ORACLE_HOME/lib: \ $ORACLE_HOME/rdbms/lib:\ $LD_LIBRARY_PATH 3. On Unix / Linux, don't forget to export these environment variables: export ORACLE_HOME LD_LIBRARY_PATH 4. Now, build PHP with the following: ./configure --with-apxs2=<path to Apache 2.0/bin/apxs> --with-oci8=$ORACLE_HOME --enable-sigchild It should now build correctly. The key with Oracle is to ensure that you pick up the libclntX.so (client librariess) where X is the Oracle version associated with the version your using for instance, in the above example, libclnt9.so Also note that if your using Oracle 9iAS Release 2 v9.0.2, Oracle 10g iAS Release 1 v9.0.4.1, the above steps will work because ORACLE_HOME will containe all of the libraries necessary. Simply point ORACLE_HOME to the top level directory of these installations and set LD_LIBRARY_PATH as described above. Hope this helps. ---- Manual Page -- http://www.php.net/manual/en/install.unix.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58513 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58513&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58513&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58513&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58513&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58513&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58513&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58513&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58513&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#98177) next »