unbuntu安装pear

1、用浏览器下载http://pear.php.net/go-pear.phar

2、将下载的go-pear.phar复制到php的安装目录下,在ubuntu中默认为/etc/php5/PEAR下,其中PEAR目录为手动创建

3、执行sudo php go-pear.phar命令,安装成功

posted on 2012-05-11 18:14  zhanghw0354  阅读(182)  评论(0编辑  收藏  举报