How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

August 13, 2012

Failed to download pecl/ssh2 within preferred state “stable”, latest release is version 0.11.3

Filed under: Linux — Tags: , , , , — admin @ 11:49 am

Today I was trying to upgrade a php on centos 5.4 from php 5.2 to php 5.3
The upgrade was run using

rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
yum --enablerepo=webtatic update php

Well everythins was ok, however after upgrade I see that if I run php -v i got some errors, memcache and ssh2 was installed using pecl and they should be reinstalled.
Well the pecl install memcache work well however
pecl install ssh2
return this error
Failed to download pecl/ssh2 within preferred state “stable”, latest release is version 0.11.3,

Well I did manage to install it by using
pecl install “channel://pecl.php.net/ssh2-0.11.3”

Regards

Powered by WordPress