PEAR从网上安装

本文介绍如何使用curl命令下载并安装PHP的扩展包管理器PEAR。详细步骤包括设置安装路径、选择安装PEAR及其捆绑组件、更新php.ini配置文件等。

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

# curl http://pear.php.net/go-pear > pear.php
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 87099  100 87099    0     0  29743      0  0:00:02  0:00:02 --:--:-- 53998


# php -q pear.php
Welcome to go-pear!

Go-pear will install the 'pear' command and all the files needed by
it.  This command is your tool for PEAR installation and maintenance.

Go-pear also lets you download and install the following optional PEAR
packages: PEAR_Frontend_Web-beta, PEAR_Frontend_Gtk2, MDB2.


If you wish to abort, press Control-C now, or press Enter to continue:

HTTP proxy (http://user:password@proxy.myhost.com:port), or Enter for none::

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 prefix ($prefix) : /usr/local/share
 2. Temporary files directory     : $prefix/temp
 3. Binaries directory            : /usr/local/bin
 4. PHP code directory ($php_dir) : $prefix/PEAR
 5. Documentation base directory  : $php_dir/docs
 6. Data base directory           : $php_dir/data
 7. Tests base directory          : $php_dir/tests

1-7, 'all' or Enter to continue:

The following PEAR packages are bundled with PHP: PEAR_Frontend_Web-beta,
PEAR_Frontend_Gtk2, MDB2.
Would you like to install these as well? [Y/n] : Y

Would you like to alter php.ini </usr/local/php/lib/php.ini>? [Y/n] : Y

php.ini </usr/local/php/lib/php.ini> include_path updated.

Current include path           : .:/usr/local/php/lib/php
Configured directory           : /usr/local/share/PEAR
Currently used php.ini (guess) : /usr/local/php/etc/php.ini
Press Enter to continue:

The 'pear' command is now at your service at /usr/bin/pear

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值