note 34405 modified in oci8.setup by sixd

From: Date: Fri, 26 Jun 2009 18:23:44 +0000
Subject: note 34405 modified in oci8.setup by sixd
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157598@lists.php.net to get a copy of this message
Can't compile php with Oracle 9i and apache on Solaris8? Sun 280R Using some of the tips below I had to add this: (static build) #!/bin/tcsh setenv LDFLAGS -L$ORACLE_HOME/lib32 cd php-4.x.x/ ./configure --with-oci8=$ORACLE_HOME --with-apache=/path/to/apache_src ..etc make make intsall cd apache_src (make sure environment variable is still set) ./configure "--prefix=/usr/apache" "--enable-module=so" \ "--activate-module=src/modules/php4/libphp4.a" ...etc make make install Having the gcc compilier build php against oracle 32 bit libraries was the key, but without setting LDFLAGS the compiler defaults to using the 64-bit oracle libraries which cause the famous "...wrong ELF class: ELFCLASS64.." on startup. The only diffenece here was I didn't have to do play musical directories for it to work. The below post was instrumental in helping me to get this fixed. Thanks to "lore_giver at lycos dot co dot uk" --was-- Can't compile php with Oracle 9i and apache on Solaris8? Sun 280R Using some of the tips below I had to add this: (static build) #!/bin/tcsh setenv LDFLAGS -L$ORACLE_HOME/lib32 cd php-4.x.x/ ./configure --with-oci8=$ORACLE_HOME --with-apache=/path/to/apache_src ..etc make make intsall cd apache_src (make sure environment variable is still set) ./configure "--prefix=/usr/apache" "--enable-module=so" \ "--activate-module=src/modules/php4/libphp4.a" ...etc make make install Having the gcc compilier build php against oracle 32 bit libraries was the key, but without setting LDFLAGS the compiler defaults to using the 64-bit oracle libraries which cause the famous "...wrong ELF class: ELFCLASS64.." on startup. The only diffenece here was I didn't have to do play musical directories for it to work. The below post was instrumental in helping me to get this fixed. Thanks to "lore_giver at lycos dot co dot uk" http://php.net/manual/en/oci8.setup.php

« previous php.notes (#157598) next »