root用户执行
1. wget http://pear.php.net/go-pear.phar
2. 安装
[root@gm_247 htmldoc-1.8.27]# /usr/local/php5/bin/php go-pear.phar
Below is a suggested file layout for your new PEAR installation. To
change individual locations, type the number in front of the
directory. Type 'all' to change all of them or simply press Enter to
accept these locations.
1. Installation base ($prefix) : /root/pear
2. Temporary directory for processing : /tmp/pear/install
3. Temporary directory for downloads : /tmp/pear/install
4. Binaries directory : /root/pear/bin
5. PHP code directory ($php_dir) : /root/pear/share/pear
6. Documentation directory : /root/pear/docs
7. Data directory : /root/pear/data
8. User-modifiable configuration files directory : /root/pear/cfg
9. Public Web Files directory : /root/pear/www
10. Tests directory : /root/pear/tests
11. Name of configuration file : /root/.pearrc
1-11, 'all' or Enter to continue:
3.测试是否能运行
/root/pear/bin/pear