note 58571 deleted from ref.oci8 by cece

From: Date: Tue, 08 Nov 2005 15:03:50 +0000
Subject: note 58571 deleted from ref.oci8 by cece
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-98257@lists.php.net to get a copy of this message
Note Submitter: php at penetic dot com Reason: non-english ---- Errror ELFCLASS64 compiling php with Oracle on SUN 64bits with gcc Error on compiling : ld: fatal: file /axe0/app/oracle/product/9.2.0/lib/libclntsh.so: wrong ELF class : ELFCLASS64 Pour compiler en 32bits avec /usr/local/bin/gcc: 1 - gtar zxvf php-4.4.1.tar.gz 2 - export CC=gcc 3 - export LD_LIBRARY=/usr/local/lib:$ORACLE_HOME/lib32 4 - export LDFLAGS="-L$ORACLE_HOME/lib32" 5 - cd php-4.4.1 6 - ./configure --with-oracle --with-oci8 \ --with-apxs=/axe0/app/apache/bin/apxs \ --enable-ftp --enable-sigchild (...) 7 - /usr/local/bin/make 8- /usr/local/bin/make install Pour compiler en 64bits SANS ERREUR : 1 - gtar zxvf php-4.4.1.tar.gz 2 - export CC=gcc 3 - export LD_LIBRARY=/usr/local/lib:$ORACLE_HOME/lib 3 - cd php-4.4.1 4 - Modifier le fichier "configure" : remplacer la ligne suivante : CFLAGS="-g -02" par CFLAGS="-g -02 -m64" 5 - ./configure --with-oracle -with .... 6 - /usr/local/bin/make 7- /usr/local/bin/make install La compil en 64bits est INDISPENSABLE si on veut utiliser un apache DEJA COMPILE en 64bits.

« previous php.notes (#98257) next »