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!  

你可能感兴趣的:(PHP,LINUX)