Bonjour,
J'essaye actuellement d'installer le module OCI8 sur mon serveur php (sous SLES 11.1) afin de pouvoir me connecter à ma base distante oracle. La base oracle n'est pas sur le même serveur que apache. J'ai installé les rpm suivants:
oracle-instantclient-basic
oracle-instantclient-devel
php5-devel
php5-pear
J'ai donc essayé: pecl install oci8
Voilà la reponse:
J'ai beau cherché sur google je ne vois pas de solutions.No releases available for package "pecl.php.net/oci8"
Cannot initialize 'channel://pecl.php.net/oci8', invalid or missing package file
Package "channel://pecl.php.net/oci8" is not valid
install failed
J'ai donc décidé d'essayer une installation manuelle mais lorsque j'execute la commande: ./configure -with-oci8=shared,instantclient,/usr/lib64/oracle/10.2.0.4/client/lib
Voilà la reponse:
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
checking for PHP extension directory... /usr/lib64/php5/extensions
checking for PHP installed headers prefix... /usr/include/php5
checking for re2c... no
configure: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for Oracle Database OCI8 support... yes, shared
checking PHP version... 5.2.6, ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of long int... 8
checking checking if we're on a 64-bit platform... yes
checking Oracle Instant Client directory... /usr/lib64/oracle/10.2.0.4/client/lib
checking Oracle Instant Client SDK header directory... configure: error: Oracle Instant Client SDK header files not found
Je précise que j'ai crée le liens suivant:
ln -s /usr/include/oracle/10.2.0.4/client/ /usr/lib64/oracle/10.2.0.4/client/lib
Lorsque je vérifie le dossier /usr/include/oracle/10.2.0.4/client/ les header sont bien présents:
ll /usr/include/oracle/10.2.0.4/client/
total 1640
-rwxr--r-- 1 root root 42534 Feb 27 17:36 ldap.h
-rw-r--r-- 1 root root 33230 Oct 20 14:09 nzerror.h
-rw-r--r-- 1 root root 85310 Oct 20 14:09 nzt.h
-rw-r--r-- 1 root root 2115 Oct 20 14:09 occi.h
-rw-r--r-- 1 root root 11600 Oct 20 14:09 occiAQ.h
-rw-r--r-- 1 root root 38724 Oct 20 14:09 occiCommon.h
-rw-r--r-- 1 root root 73063 Oct 20 14:09 occiControl.h
-rw-r--r-- 1 root root 35218 Oct 20 14:09 occiData.h
-rw-r--r-- 1 root root 29307 Oct 20 14:09 occiObjects.h
-rw-r--r-- 1 root root 152599 Oct 20 14:09 oci.h
-rw-r--r-- 1 root root 7155 Oct 20 14:09 oci1.h
-rw-r--r-- 1 root root 10361 Oct 20 14:09 oci8dp.h
-rw-r--r-- 1 root root 411221 Oct 20 14:09 ociap.h
-rw-r--r-- 1 root root 6055 Oct 20 14:09 ociapr.h
-rw-r--r-- 1 root root 43225 Oct 20 14:09 ocidef.h
-rw-r--r-- 1 root root 4014 Oct 20 14:09 ocidem.h
-rw-r--r-- 1 root root 11331 Oct 20 14:09 ocidfn.h
-rw-r--r-- 1 root root 8954 Oct 20 14:09 ociextp.h
-rw-r--r-- 1 root root 6638 Oct 20 14:09 ocikpr.h
-rw-r--r-- 1 root root 4351 Oct 20 14:09 ocixmldb.h
-rwxr--r-- 1 root root 101296 Feb 27 17:36 ocixstream.h
-rw-r--r-- 1 root root 19099 Oct 20 14:09 odci.h
-rw-r--r-- 1 root root 6605 Oct 20 14:09 oratypes.h
-rw-r--r-- 1 root root 102726 Oct 20 14:09 ori.h
-rw-r--r-- 1 root root 15031 Oct 20 14:09 orid.h
-rw-r--r-- 1 root root 157674 Oct 20 14:09 orl.h
-rw-r--r-- 1 root root 42626 Oct 20 14:09 oro.h
-rw-r--r-- 1 root root 116591 Oct 20 14:09 ort.h
-rw-r--r-- 1 root root 9520 Oct 20 14:09 xa.h
J'ai réinstallé oracle-instantclient-devel dans le doute mais cela ne change rien.
oci8 est vraiment obligatoire pour pouvoir me connecter à ma base? Je ne vois plus trop de moyen pour l'installer...
J'espère que quelqu'un sera en mesure de m'aider.
Partager