1
2
3
4
5
6
7
8
9
10
11
12
13
|
wget -c https: //www .libssh2.org /download/libssh2-1 .7.0. tar .gz --no-check-certificate
wget -c http: //pecl .php.net /get/ssh2-0 .13.tgz --no-check-certificate
tar -zxvf libssh2-1.7.0. tar .gz
cd libssh2-1.7.0
. /configure --prefix= /usr/local/libssh2
make && make install
tar -zxvf ssh2-0.13.tgz
cd ssh2-0.13
/usr/local/php/bin/phpize
. /configure --prefix= /usr/local/ssh2 --with-ssh2= /usr/local/libssh2/ --with-php-config= /usr/local/php/bin/php-config
make
make install
|
本文转自 wpf926 51CTO博客,原文链接:http://blog.51cto.com/wupengfei/1956605,如需转载请自行联系原作者