note 32212 modified in oci8.setup by sixd

From: Date: Fri, 26 Jun 2009 18:23:02 +0000
Subject: note 32212 modified in oci8.setup by sixd
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157594@lists.php.net to get a copy of this message
Running Oracle 9i on a Solaris 9 (64 bit) platform with a Sun Server E250: Apache version 1.3.27 PHP version 4.3.1 I was first getting "...wrong ELF class: ELFCLASS64.." while doing a ./configure with the --with-oci8 and --with-oracle parameters. After some unsuccessfull searched I renamed the $ORACLE_HOME/lib to $ORACLE_HOME/lib.org and then renamed the $ORACLE_HOME/lib32 to $ORACLE_HOME/lib Thereafter it went passed this config, but now failed on not being able to find a libwtc9.so file which was in the $ORACLE_HOME/lib directory (this message was displayed in the debug.log in the php source directory). After setting the Environment variable: LD_LIBRARY_PATH=$ORACLE_HOME/lib I was able to compile without any errors and 'make' and 'make install' ran smoothly. I only had to add the php type in the httpd.conf (in your apache conf directory eg. /usr/local/apache/conf).. AddType application/x-httpd-php .php to get the php to work again... I had to then reverse the $ORACLE_HOME/lib swop on top since php was now having problems with the 32 bit version of the library...so switched it back to 64 and my php script worked.... Hope this helps some out there with similar problems.. Cheers --was-- Running Oracle 9i on a Solaris 9 (64 bit) platform with a Sun Server E250: Apache version 1.3.27 PHP version 4.3.1 I was first getting "...wrong ELF class: ELFCLASS64.." while doing a ./configure with the --with-oci8 and --with-oracle parameters. After some unsuccessfull searched I renamed the $ORACLE_HOME/lib to $ORACLE_HOME/lib.org and then renamed the $ORACLE_HOME/lib32 to $ORACLE_HOME/lib Thereafter it went passed this config, but now failed on not being able to find a libwtc9.so file which was in the $ORACLE_HOME/lib directory (this message was displayed in the debug.log in the php source directory). After setting the Environment variable: LD_LIBRARY_PATH=$ORACLE_HOME/lib I was able to compile without any errors and 'make' and 'make install' ran smoothly. I only had to add the php type in the httpd.conf (in your apache conf directory eg. /usr/local/apache/conf).. AddType application/x-httpd-php .php to get the php to work again... I had to then reverse the $ORACLE_HOME/lib swop on top since php was now having problems with the 32 bit version of the library...so switched it back to 64 and my php script worked.... Hope this helps some out there with similar problems.. Cheers http://php.net/manual/en/oci8.setup.php

« previous php.notes (#157594) next »