I use phing as a deployment tool on CentOS and I'd like to use the SshTask, which required libssh2 to be installed.
I tried "pecl install ssh2" but that asks me for a libssh2 prefix [/usr?]
I noticed that this means I need to install libssh2 first, but yum does not have that package. So my question is: what is the best way to install libssh2 on Centos and then install the pecl extension?
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
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
You need libssh2-devel not just libssh2. Here's a little shorter version
Effort to install
libssh2-devel
usingyum
failed with errorNo package libssh2-devel available.
(remi repo)I downloaded it from PECL website and installed via
All other packages and dependencies were downloaded from rpmfind.net and installed like this
This is what I did.