Vesta 2.0 is coming soon! See our progress update: https://vestacp.com/docs/vesta-2-update
php & SSH2
php & SSH2
Вообщем установил весту на Centos 6.2 по мануалу...
Пытаюсь поставить расширение для php SSH2
pecl install -f ssh2
Пытаюсь поставить расширение для php SSH2
pecl install -f ssh2
- configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/sh /var/tmp/pear-build-finallsmPspeZ/ssh2-0.12/libtool --mode=compile cc -I. -I/var/tmp/ssh2 -DPHP_ATOM_INC -I/var/tmp/pear-build-finallsmPspeZ/ssh2-0.12/include -I/var/tmp/pear-build-finallsmPspeZ/ssh2-0.12/main -I/var/tmp/ssh2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/ssh2/ssh2.c -o ssh2.lo
libtool: compile: cc -I. -I/var/tmp/ssh2 -DPHP_ATOM_INC -I/var/tmp/pear-build-finallsmPspeZ/ssh2-0.12/include -I/var/tmp/pear-build-finallsmPspeZ/ssh2-0.12/main -I/var/tmp/ssh2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/ssh2/ssh2.c -fPIC -DPIC -o .libs/ssh2.o
/var/tmp/ssh2/ssh2.c: In function ‘zif_ssh2_publickey_add’:
/var/tmp/ssh2/ssh2.c:1063: warning: passing argument 1 of ‘_efree’ discards qualifiers from pointer target type
/usr/include/php/Zend/zend_alloc.h:60: note: expected ‘void *’ but argument is of type ‘const char *’
/var/tmp/ssh2/ssh2.c: In function ‘zif_ssh2_publickey_list’:
/var/tmp/ssh2/ssh2.c:1122: warning: passing argument 4 of ‘add_assoc_stringl_ex’ discards qualifiers from pointer target type
/usr/include/php/Zend/zend_API.h:380: note: expected ‘char *’ but argument is of type ‘const unsigned char *’
/var/tmp/ssh2/ssh2.c:1123: warning: passing argument 4 of ‘add_assoc_stringl_ex’ discards qualifiers from pointer target type
/usr/include/php/Zend/zend_API.h:380: note: expected ‘char *’ but argument is of type ‘const unsigned char *’
/var/tmp/ssh2/ssh2.c: In function ‘zif_ssh2_auth_agent’:
/var/tmp/ssh2/ssh2.c:1154: error: ‘LIBSSH2_AGENT’ undeclared (first use in this function)
/var/tmp/ssh2/ssh2.c:1154: error: (Each undeclared identifier is reported only once
/var/tmp/ssh2/ssh2.c:1154: error: for each function it appears in.)
/var/tmp/ssh2/ssh2.c:1154: error: ‘agent’ undeclared (first use in this function)
make: *** [ssh2.lo] Error 1
ERROR: `make' failed
Re: php & SSH2
Попробуйте это
http://www.php.net/manual/en/ssh2.installation.php
http://www.php.net/manual/en/ssh2.installation.php