Bonjour à tous,
Je cherche à installer la librairie SSH2 pour php et voici la doc sur laquelle je me base :
http://fr.php.net/ssh2
Etape 1 : J'ai passé l'étape 1 puisque j'ai deja SSL d'installé sur la distribution.* 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 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 :
Est ce que cela veut dire que le package Pear aurait un défaut ???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
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":
Je ne sais plus quoi faire et surtout je ne sais pas d'où viens le problème./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
Merci d'avance...
Partager