LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Debian AMD64 Oracle 10g XE and PHP OCI8 (https://www.linuxquestions.org/questions/linux-software-2/debian-amd64-oracle-10g-xe-and-php-oci8-699622/)

he_the_great 01-24-2009 12:32 PM

Debian AMD64 Oracle 10g XE and PHP OCI8
 
Trying to get these three things to work together has been quite a pain. I was able to install Oracle just fine, good instructions can be found:

http://littlebrain.org/2008/05/12/ho...ubuntu-64-bit/

I was even able to install the OCI8 modules for php with,

http://remorse.nl/weblog/debian_oracle_xe_and_php5/

you will need to:
Code:

apt-get install libc6-dev-i386
export CFLAGS='-m32'

before running the pear command.

The issue is that during PHP startup it will complain it is of the "wrong ELF class: ELFCLASS32" Is there a way to get around this without going 32bit?

/var/log/apache2/error.log
Code:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613/oci8.so' - /usr/lib/php5/20060613/oci8.so: wrong ELF class: ELFCLASS32 in Unknown on line 0


All times are GMT -5. The time now is 09:12 AM.