#19340 [Com]: Oracle 9i with PHP 4.2.3 and Apache 1.3.26 failed

From: Date: Tue, 17 Sep 2002 09:22:35 +0000
Subject: #19340 [Com]: Oracle 9i with PHP 4.2.3 and Apache 1.3.26 failed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19522@lists.php.net to get a copy of this message
ID: 19340 Comment by: tixier@france-loisirs.com Reported By: itman@epost.de Status: Open Bug Type: OCI8 related Operating System: SuSE Linux 7.3 PHP Version: 4.2.3 New Comment: Same problem with me. I have discovered two problems with OCI8 and Oracle 9.2: 1. 32/64 bits environment ? You have to use .../lib or .../lib32 libraries. 2. Bug in the configure file (initially the bug is ext/oci8/config.m4) I finally get a correct installation by doing the following changes in the configure file: if test -s "$OCI8_DIR/orainst/unix.rgs"; then replaced by: if test -s "$OCI8_DIR/install/unix.rgs"; then OCI8_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | sed 's/ */:/g' | cut -d: -f 6 | cut -c 2-4` replaced by: OCI8_VERSION=`grep rdbms $OCI8_DIR/install/unix.rgs |sed 's/ */:/g' | cut -d: -f 2| cut -c 1-3` 8.1|9.0) replaced by: 8.1|9.0|9.1|9.2) and for my own environment (AIX): OCI8_DIR/lib changed to OCI8_DIR/lib32 OCI8_DIR/rdbms/lib changed to OCI8_DIR/rdbms/lib32 I hope this can help you. Previous Comments: ------------------------------------------------------------------------ [2002-09-11 09:56:21] itman@epost.de Oracle Development Kit 9.2.0.1.0 ist installed. There is no clntsh.so installed but I found /oracle/product/901/lib/libclntsh.so and /oracle/product/901/bin/genclntsh The path /oracle/product/901/lib/ is set correctly in the LD_LIBRARY_PATH ------------------------------------------------------------------------ [2002-09-10 17:03:58] edink@php.net Did you install oracle development tools? Could you try locating clntsh.so on your system? ------------------------------------------------------------------------ [2002-09-10 12:36:41] itman@epost.de Thanks for the information. So, I tried to compile this version with the same configure params, but now it fails soon to configure with "libpng not found!" I think, this problem based on the combination with the pdf-lib. ------------------------------------------------------------------------ [2002-09-10 12:07:13] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip ------------------------------------------------------------------------ [2002-09-10 11:44:27] itman@epost.de The compilation of PHP 4.2.3 with correct environment (.profile of oracle user) with Oracle 9i and Apache 1.3.26 failed. The configure params are: ./configure \ --with-apache=/usr/src/linux/apache \ --with-config-file-path=/etc/httpd \ --with-gd \ --with-png-dir=/usr/lib \ --with-jpeg-dir=/usr/lib \ --with-zlib=yes \ --with-freetype-dir=/usr/lib \ --with-pdflib=/usr/local \ --enable-shared-pdflib \ --with-oci8=/apps/oracle/product/901 \ --with-xml \ --with-ttf \ --with-ftp \ --enable-track-vars \ --enable-sigchild \ --enable-versioning \ --enable-track-vars \ --enable-magic-quotes \ --enable-safe-mode \ --enable-sysvsem \ --enable-sysvshm \ --enable-thread-safety \ It failed with following output after testing out some configurations while compiling apache as php built-in: /usr/i486-suse-linux/bin/ld: cannot find -lclntsh The LD-Library-Path and the ORA-environment are correctly set. regards... olaf ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19340&edit=1

« previous php.bugs (#19522) next »