IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

PHP & Base de données Discussion :

Problème d'installation d'oci8


Sujet :

PHP & Base de données

  1. #1
    Futur Membre du Club
    Homme Profil pro
    Inscrit en
    Février 2012
    Messages
    8
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Février 2012
    Messages : 8
    Points : 8
    Points
    8
    Par défaut Problème d'installation d'oci8
    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:
    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 beau cherché sur google je ne vois pas de solutions.

    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.

  2. #2
    Membre habitué
    Homme Profil pro
    Directeur technique
    Inscrit en
    Février 2011
    Messages
    146
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : Transports

    Informations forums :
    Inscription : Février 2011
    Messages : 146
    Points : 172
    Points
    172
    Par défaut
    as tu trouver la réponse à ton problème ?

    perso j'arrive a finir l'install mais impossible de renseigner les var d’environnement correctement :

    tnsnames can't be resolve etc .....

Discussions similaires

  1. Problème d'installation de CallerId
    Par Chacks dans le forum Composants VCL
    Réponses: 5
    Dernier message: 21/08/2003, 08h30
  2. problème d'installation du compilateur Borland C++
    Par Hakkou dans le forum Autres éditeurs
    Réponses: 1
    Dernier message: 02/06/2003, 11h02
  3. [SAPdb]Problème d'installation
    Par manou dans le forum SAP
    Réponses: 3
    Dernier message: 17/04/2003, 09h20
  4. Problème d'installation oracle 8.1.7 sous NT
    Par Anonymous dans le forum Installation
    Réponses: 7
    Dernier message: 02/08/2002, 14h18
  5. Réponses: 3
    Dernier message: 26/07/2002, 23h02

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo