PEAR从网上安装

# 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

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在Linux上安装PEAR,您可以按照以下步骤进行操作: 1. 下载PEAR包:使用以下命令下载PEAR包: ``` $ sudo wget http://pear.php.net/go-pear.phar ``` 2. 安装PEAR:使用以下命令安装PEAR包: ``` $ sudo php go-pear.phar ``` 3. 查看PEAR包的安装路径:在Linux下,您可以使用以下命令查看PEAR包的安装路径: ``` $ php -r 'echo get_include_path();' ``` 默认情况下,PEAR包会安装在`/usr/share/php/pear/`路径下。 请注意,这只是PEAR的基本安装步骤。在安装PEAR之后,您可以使用`pear`命令来管理安装的包,如使用`pear list`命令查看已安装的包,使用`pear install packagename`来安装更多的PEAR包等。具体每个包的使用方法可以在https://pear.php.net/packages.php网站上查找。 希望以上信息对您有所帮助。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [linux下pear安装](https://blog.csdn.net/feihongxueni/article/details/49666447)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [Linux安装pear包](https://blog.csdn.net/a616735104/article/details/101625564)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值