Hatena::ブログ(Diary)

Affirmative Way

2007 | 10 | 11 | 12 |
2008 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 |
2009 | 09 | 11 |
2010 | 01 |
2011 | 01 | 06 |

2009-11-18

MacPortsで入れたphp52のPEARにunsupported protocalとか言われた時の対処メモ

  • なんかPEARがご機嫌ななめ
$ sudo pear install Benchmark
pear.php.net is using a unsupported protocal - This should never happen.
install failed
$ sudo rm /opt/local/lib/php/.channels/pear.php.net.reg
$ sudo rm /opt/local/lib/php/.channels/pecl.php.net.reg
  • 再生成する
$ sudo pear channel-update pear.php.net
Updating channel "pear.php.net"
Update of Channel "pear.php.net" succeeded
  • PEAR本体が古いので更新
$ sudo pear upgrade PEAR
  • 再度試す
$ sudo pear install Benchmark
downloading Benchmark-1.2.7.tgz ...
Starting to download Benchmark-1.2.7.tgz (9,506 bytes)
.....done: 9,506 bytes
install ok: channel://pear.php.net/Benchmark-1.2.7

わーい、ちゃんとうごいたー

スパム対策のためのダミーです。もし見えても何も入力しないでください
ゲスト


画像認証

トラックバック - http://d.hatena.ne.jp/cos31/20091118/php52_on_mac