1. 程式人生 > >Linux安裝PHP的pecl pear工具

Linux安裝PHP的pecl pear工具

cd /usr/local/php/bin/  
curl -o go-pear.php http://pear.php.net/go-pear  
curl -o go-pear.php http://pear.php.net/go-pear.phar # 如果你的php版本高於php5.3, 執行這條  
php go-pear.php # 回車, 會提示選擇安裝的東西, 直接回車, 安裝全部, 若後面有要選擇y/n的, 輸入y回車 
 
###以下為安裝成功
Run it without parameters to see the available actions, try 'pear list'  
to see what packages are installed, or 'pear help' for help.  
  
For more information about PEAR, see:  
  
  http://pear.php.net/faq.php  
  http://pear.php.net/manual/  
  
Thanks for using go-pear!