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

RedHat / CentOS / Fedora Discussion :

[Debutant] Problème d'ajout de la lib ssh2 pour PHP sous RH ES 4


Sujet :

RedHat / CentOS / Fedora

  1. #1
    Membre régulier
    Homme Profil pro
    Inscrit en
    Avril 2007
    Messages
    277
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Avril 2007
    Messages : 277
    Points : 93
    Points
    93
    Par défaut [Debutant] Problème d'ajout de la lib ssh2 pour PHP sous RH ES 4
    Bonjour à tous,

    Je cherche à installer la librairie SSH2 pour php et voici la doc sur laquelle je me base :
    http://fr.php.net/ssh2

    * 1 Download and install » OpenSSL. If you install OpenSSL via your distribution's packaging system be sure to install the development libraries as well. This will typically be a package named openssl-dev, openssl_devel, or some variation thereof.
    * 2 Download and install » libssh2. Typically this means executing the following command from the libssh2 source tree. ./configure && make all install.
    * 3 Run the pear installer for PECL/ssh2: pear install ssh2
    * 4 Copy ssh2.so from the directory indicated by the build process to the location specified in your php.ini file under extension_dir.
    * 5 Add extension=ssh2.so to your php.ini
    * 6 Restart your web server to reload your php.ini settings.

    Development Versions: There are currently no stable versions of PECL/ssh2, to force installation of the beta version of PECL/ssh2 execute: pear install ssh2-beta


    Compiling PECL/ssh2 without using the PEAR command

    Rather than using pear install ssh2 to automatically download and install PECL/ssh2, you may download the tarball from » PECL. From the root of the unpacked tarball, run: phpize && ./configure --with-ssh2 && make to generate ssh2.so. Once built, continue the installation from step 4 above.
    Etape 1 : J'ai passé l'étape 1 puisque j'ai deja SSL d'installé sur la distribution.
    Etape 2 : J'ai téléchargé libssh2-0.17.tar.gz, décompréssé et exécuté la commande ./configure && make all install. Jusque là tout va bien.
    Etape 3 : Lorsque je lance la commande pear install ssh2-beta, j'ai la réponse suivante :
    No releases available for package "pear.php.net/ssh2" - package pecl/ssh2 can be installed with "pecl install ssh2"
    Cannot initialize 'ssh2-beta', invalid or missing package file
    Package "ssh2-beta" is not valid
    install failed
    Est ce que cela veut dire que le package Pear aurait un défaut ???
    Etape 3 bis : J'ai donc essayé la deuxième méthode, j'ai téléchargé ssh2-0.10.tgz, décompréssé et lancé la commande phpize && ./configure --with-ssh2 && make mais je rencontre l'erreur suivante après le "checking":

    /root/Desktop/ssh2-0.10/ssh2.c: In function `zif_ssh2_methods_negotiated':
    /root/Desktop/ssh2-0.10/ssh2.c:481: warning: passing arg 2 of `libssh2_session_methods' makes integer from pointer without a cast
    /root/Desktop/ssh2-0.10/ssh2.c:481: error: too many arguments to function `libssh2_session_methods'
    /root/Desktop/ssh2-0.10/ssh2.c: In function `zif_ssh2_fingerprint':
    /root/Desktop/ssh2-0.10/ssh2.c:536: warning: assignment discards qualifiers from pointer target type
    /root/Desktop/ssh2-0.10/ssh2.c: In function `zif_ssh2_publickey_add':
    /root/Desktop/ssh2-0.10/ssh2.c:1038: warning: passing arg 1 of `_efree' discards qualifiers from pointer target type
    /root/Desktop/ssh2-0.10/ssh2.c: In function `zif_ssh2_publickey_list':
    /root/Desktop/ssh2-0.10/ssh2.c:1097: warning: passing arg 4 of `add_assoc_stringl_ex' discards qualifiers from pointer target type
    /root/Desktop/ssh2-0.10/ssh2.c:1098: warning: passing arg 4 of `add_assoc_stringl_ex' discards qualifiers from pointer target type
    /root/Desktop/ssh2-0.10/ssh2.c:1106: warning: initialization discards qualifiers from pointer target type
    /root/Desktop/ssh2-0.10/ssh2.c:1107: warning: passing arg 2 of `zend_hash_add_or_update' discards qualifiers from pointer target type
    make: *** [ssh2.lo] Erreur 1
    Je ne sais plus quoi faire et surtout je ne sais pas d'où viens le problème.

    Merci d'avance...

  2. #2
    Membre à l'essai
    Homme Profil pro
    Chercheur en informatique
    Inscrit en
    Mai 2006
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 32
    Localisation : Canada

    Informations professionnelles :
    Activité : Chercheur en informatique

    Informations forums :
    Inscription : Mai 2006
    Messages : 12
    Points : 10
    Points
    10
    Par défaut
    Salut,

    Ajoute ça dans ton config.h avant de faire ton make :

    #define LIBSSH2_APINO 200412301450

    Moi ça a résolu le problème de suite ^^

  3. #3
    Nouveau Candidat au Club
    Inscrit en
    Octobre 2006
    Messages
    1
    Détails du profil
    Informations forums :
    Inscription : Octobre 2006
    Messages : 1
    Points : 1
    Points
    1
    Par défaut Problème résolu
    Je n'étais pas le destinataire de ce message mais en tout cas

    MERCI Alexbad

  4. #4
    Membre régulier
    Homme Profil pro
    Inscrit en
    Avril 2007
    Messages
    277
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Avril 2007
    Messages : 277
    Points : 93
    Points
    93
    Par défaut
    J'ai réglé le problème en installer la plus vieille version de la libssh que j'ai trouvé, c'est à dire la 0,9.

    Je n'ai pas de réponse précise à la source du problème.

Discussions similaires

  1. problème avec ajout fichier lib
    Par Metrica dans le forum C++Builder
    Réponses: 0
    Dernier message: 26/03/2011, 10h57
  2. Réponses: 1
    Dernier message: 29/06/2009, 11h11
  3. Problème d'ajout de lib : wsock32
    Par aymeric94350 dans le forum Qt
    Réponses: 1
    Dernier message: 22/06/2009, 23h19
  4. Réponses: 1
    Dernier message: 24/02/2009, 15h07
  5. [Debutant] Problème d'ID déjà existant à l'ajout
    Par tck-lt dans le forum Hibernate
    Réponses: 5
    Dernier message: 18/12/2006, 11h47

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