how to install libssh2 on Centos + pecl
Solution 1:
to install libssh2 on centos follow the next steps:
download libssh2 from the official website (look for in google - i don't have reputation and can't post but 1 link)
extract it somewhere, then open a terminal and go in the folder where you extracted it and type these commands
./configure make make install
ALSO
you can install the rpmforge repos from DAG from here:
http://dag.wieers.com/rpm/packages/rpmforge-release/
(check your version, if you're on i386 you'll probably have to get the "Red Hat EL 5 - i386" one)
then do a
yum install libssh2
Solution 2:
You need libssh2-devel not just libssh2. Here's a little shorter version
yum install libssh2-devel
pecl install ssh2-0.12