pear.php.net is using a unsupported protocol

会社の開発者から、とあるPEARパッケージをインストールしてくれと依頼されたので
# pear install “Some Package”
を実行すると、

pear.php.net is using a unsupported protocol – This should never happen.
install failed


と冷たいお返事。

「.channels」ディレクトリをリネームして、「pear update-channels」をしてあげれば大丈夫。インストール成功となりました。どうやら「PHP5.2.9」と「PHP5.2.10」で起こる問題のようですね。「PHP5.2.11」でも起こるような気がしますが。

# cd /usr/local/lib/php
# mv .channels .channels-broken
# pear update-channels


とすることで、PEARモジュールを新規にインストールすることができました。
詳しくは、↓に書かれています。
http://blog.pear.php.net/2009/08/28/fixing-unsupported-protocol/

 

 

Related Posts

No related posts were found, so here's a consolation prize: etchリリース.

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!