安裝pear的具體流程如下:
1.下載go-pear.phar包
# wget http://pear.php.net/go-pear.phar
在當前用戶有操作權限的前提下
2.運行
#php go-pear.phar 或者 /usr/local/php5/bin/php go-pear.phar (具體的要根據你的php 的安裝路徑)
3.點擊回車兩次...
4.查看你的pear的安裝位置
#which pear
------結果:
/usr/local/php5/bin