如何正确的安装pear


  在windows或者unix-like,安装pear
  首先必须正确的安装php,
  在命令行打入PHP是否可以正确的运行,
  如何可以运行说明你的PHP正确运行,
  如果不可以运行,请配置好的你的PHP
  接下来到
  http://pear.php.net/go-pear
  复制并另存为go-pear.php
  在PHP主目录下运行
  php go-pear.php
  例如在windows 平台下的安装将显示:
  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.

Use 'php go-pear.php local' to install a local copy of PEAR.

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::
是否使用了http代理,如果没有,按回车

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) : C:/xampp/php
 2. Temporary files directory     : $prefix/temp
 3. Binaries directory            : $prefix
 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
 8. php.exe path                  : C:/xampp/php/php.exe

1-8, 'all' or Enter to continue:
如果你要修改默认的路径请按1-8, 或者都要修改按all,默认回车

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
这里选择y

Would you like to alter php.ini <C:/xampp/php/php.ini>? [Y/n] :

是否修改php.ini 的include.path 选项,你可以自行修改。


* WINDOWS ENVIRONMENT VARIABLES *
For convenience, a REG file is available under C:/xampp/php/PEAR_ENV.reg .
This file creates ENV variables for the current user.

Double-click this file to add it to the current user registry.

pear为你生成了系统环境变量,双击并导入注册表文件。

 

 

稍后将我在 unix=like上演示pear的安装.

 

 

 

  

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值