pear 安装

本文介绍如何使用root用户通过wget下载PEAR安装脚本,并提供了一个建议的文件布局方案来完成PEAR的安装过程,最后验证了安装结果。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值