While installing if you get an error

“Failed to download pear/HTTP_OAuth within preferred state “stable”, latest release is version 0.1.18, stability “alpha”, use “channel://pear.php.net/HTTP_OAuth-0.1.18″ to install
install failed ”

Use the below command to install it successfully.

pear install HTTP_OAuth-alpha

You will get below results,

root@hillock [~]# pear install HTTP_OAuth-alpha
Did not download optional dependencies: pecl/pecl_http, use –alldeps to download automatically
pear/HTTP_OAuth can optionally use package “pecl/pecl_http” (version >= 1.6.0)
pear/HTTP_Request2 can optionally use PHP extension “fileinfo”
downloading HTTP_OAuth-0.1.18.tgz …
Starting to download HTTP_OAuth-0.1.18.tgz (51,237 bytes)
………….done: 51,237 bytes
downloading HTTP_Request2-0.5.2.tgz …
Starting to download HTTP_Request2-0.5.2.tgz (58,159 bytes)
…done: 58,159 bytes
downloading Net_URL2-0.3.1.tgz …
Starting to download Net_URL2-0.3.1.tgz (8,488 bytes)
…done: 8,488 bytes
install ok: channel://pear.php.net/Net_URL2-0.3.1
install ok: channel://pear.php.net/HTTP_Request2-0.5.2
install ok: channel://pear.php.net/HTTP_OAuth-0.1.18