note 34405 added to ref.oci8

From: Date: Fri, 25 Jul 2003 21:26:13 +0000
Subject: note 34405 added to ref.oci8
Groups: php.notes 
Request: Send a blank email to php-notes+get-52672@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" ---- Manual Page -- http://www.php.net/manual/en/ref.oci8.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34405 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34405&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34405&report=yes

« previous php.notes (#52672) next »