Précédent   Forum des professionnels en informatique > Systèmes > Linux > Distributions > Fedora / Red hat
Fedora / Red hat Vos questions sur les distributions Fedora / Red Hat
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 03/10/2007, 10h22   #1
Membre du Club
 
Homme Jonathan
Inscription : avril 2007
Messages : 274
Détails du profil
Informations personnelles :
Nom : Homme Jonathan

Informations forums :
Inscription : avril 2007
Messages : 274
Points : 57
Points : 57
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

Citation:
* 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


Citation:
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 :
Citation:
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":

Citation:
/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...
Jonathan.b est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/10/2007, 04h57   #2
Invité de passage
 
Inscription : mai 2006
Messages : 11
Détails du profil
Informations forums :
Inscription : mai 2006
Messages : 11
Points : 3
Points : 3
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 ^^
Alexbad est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 31/10/2007, 21h35   #3
Invité de passage
 
Inscription : 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
Julien24 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 06/11/2007, 14h51   #4
Membre du Club
 
Homme Jonathan
Inscription : avril 2007
Messages : 274
Détails du profil
Informations personnelles :
Nom : Homme Jonathan

Informations forums :
Inscription : avril 2007
Messages : 274
Points : 57
Points : 57
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.
Jonathan.b est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 21h39.


 
 
 
 
Partenaires

Hébergement Web