I have problems on install libSSH2.
I've follow some guides here and there and finally comes up to:
yum install gcc php-devel php-pear libssh2 libssh2-devel
pecl install -f ssh2
touch /etc/php.d/ssh2.ini
echo extension=ssh2.so > /etc/php.d/ssh2.ini
The pecl install stop was "failed with":
Warning: opendir(/tmp/pear/temp/pear-build-rootzlWRuA/install-ssh2-0.12//usr/local): failed to open dir: No such file or directory in /usr/lib64/php/PEAR/Builder.php on line 188
I watch at phpinfo() and the module seems loaded, but didn't recognize the ssh2_connect() comand (
Fatal error: Call to undefined function ssh2_connect() in
)
The directory /tmp/pear/temp/pear-build-rootzlWRuA/install-ssh2-0.12 is not anymore so i cannot dig for files. I think that must be fixed on the install. If you see carefully, you will see that there's no space on the last paths.
Warning: opendir(/tmp/pear/temp/pear-build-rootzlWRuA/install-ssh2-0.12//usr/local)
Actually i don't know how to fix that