php-pear安装

安装步骤

  • 下载go-pear.phar下来,把文件复制到你要安装php版本的目录,然后解压再把文件移到php7.3.4nts的目录

    我拿php7.3.4nts来做示范

  • 执行

    下载地址:http://pear.php.net/go-pear.phar

关键事项

  • 注意事项:第一个一定是选择 local。
  • 第一次执行的时候一定要指定 php的路径,输入13弹出对话框选择PHP的目录。
  • 之后直接按 Enter 继续。完成!

安装过程

在cmd打开php7.3.4nts路径

Microsoft Windows [版版本本 6.1.7601]
版版权权所所有有 (c) 2009 Microsoft Corporation。。保保留留所所有有权权利利。。

E:\phpstudy_pro\Extensions\php\php7.3.4nts>php.exe go-pear.phar

Are you installing a system-wide PEAR or a local copy?
(system|local) [system] : local
Please confirm local copy by typing 'yes' : yes

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) : E:\phpstudy_pro\Extensions\php\php7.3.4nts
2. Temporary directory for processing : E:\phpstudy_pro\Extensions\php\php7.3.4nts\tmp
3. Temporary directory for downloads : E:\phpstudy_pro\Extensions\php\php7.3.4nts\tmp
4. Binaries directory : E:\phpstudy_pro\Extensions\php\php7.3.4nts
5. PHP code directory ($php_dir) : E:\phpstudy_pro\Extensions\php\php7.3.4nts\pear
6. Documentation directory : E:\phpstudy_pro\Extensions\php\php7.3.4nts\docs
7. Data directory : E:\phpstudy_pro\Extensions\php\php7.3.4nts\data
8. User-modifiable configuration files directory : E:\phpstudy_pro\Extensions\php\php7.3.4nts\cfg
9. Public Web Files directory : E:\phpstudy_pro\Extensions\php\php7.3.4nts\www
10. System manual pages directory : E:\phpstudy_pro\Extensions\php\php7.3.4nts\man
11. Tests directory : E:\phpstudy_pro\Extensions\php\php7.3.4nts\tests
12. Name of configuration file : E:\phpstudy_pro\Extensions\php\php7.3.4nts\pear.ini
13. Path to CLI php.exe :

1-13, 'all' or Enter to continue: 13 //就是这次,选择php文件的目录进行,然后回车
php.exe (sapi: cli) found.


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) : E:\phpstudy_pro\Extensions\php\php7.3.4nts
2. Temporary directory for processing : E:\phpstudy_pro\Extensions\php\php7.3.4nts\tmp
3. Temporary directory for downloads : E:\phpstudy_pro\Extensions\php\php7.3.4nts\tmp
4. Binaries directory : E:\phpstudy_pro\Extensions\php\php7.3.4nts
5. PHP code directory ($php_dir) : E:\phpstudy_pro\Extensions\php\php7.3.4nts\pear
6. Documentation directory : E:\phpstudy_pro\Extensions\php\php7.3.4nts\docs
7. Data directory : E:\phpstudy_pro\Extensions\php\php7.3.4nts\data
8. User-modifiable configuration files directory : E:\phpstudy_pro\Extensions\php\php7.3.4nts\cfg
9. Public Web Files directory : E:\phpstudy_pro\Extensions\php\php7.3.4nts\www
10. System manual pages directory : E:\phpstudy_pro\Extensions\php\php7.3.4nts\man
11. Tests directory : E:\phpstudy_pro\Extensions\php\php7.3.4nts\tests
12. Name of configuration file : E:\phpstudy_pro\Extensions\php\php7.3.4nts\pear.ini
13. Path to CLI php.exe : E:\phpstudy_pro\Extensions\php\php7.3.4nts\

1-13, 'all' or Enter to continue:
Beginning install...
Configuration written to E:\phpstudy_pro\Extensions\php\php7.3.4nts\pear.ini...
Initialized registry...
Preparing to install...
installing phar://E:/phpstudy_pro/Extensions/php/php7.3.4nts/go-pear.phar/PEAR/g
o-pear-tarballs/Archive_Tar-1.4.4.tar...
installing phar://E:/phpstudy_pro/Extensions/php/php7.3.4nts/go-pear.phar/PEAR/g
o-pear-tarballs/Console_Getopt-1.4.1.tar...
installing phar://E:/phpstudy_pro/Extensions/php/php7.3.4nts/go-pear.phar/PEAR/g
o-pear-tarballs/PEAR-1.10.7.tar...
installing phar://E:/phpstudy_pro/Extensions/php/php7.3.4nts/go-pear.phar/PEAR/g
o-pear-tarballs/Structures_Graph-1.1.1.tar...
installing phar://E:/phpstudy_pro/Extensions/php/php7.3.4nts/go-pear.phar/PEAR/g
o-pear-tarballs/XML_Util-1.4.3.tar...
install ok: channel://pear.php.net/Archive_Tar-1.4.4
install ok: channel://pear.php.net/Console_Getopt-1.4.1
install ok: channel://pear.php.net/Structures_Graph-1.1.1
install ok: channel://pear.php.net/XML_Util-1.4.3
install ok: channel://pear.php.net/PEAR-1.10.7
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)

PEAR: To install optional features use "pear install pear/PEAR#featurename"

******************************************************************************
WARNING! The include_path defined in the currently used php.ini does not
contain the PEAR PHP directory you just specified:
<E:\phpstudy_pro\Extensions\php\php7.3.4nts\pear>
If the specified directory is also not in the include_path used by
your scripts, you will have problems getting any PEAR packages working.


Would you like to alter php.ini <E:\phpstudy_pro\Extensions\php\php7.3.4nts\php.
ini>? [Y/n] : y

php.ini <E:\phpstudy_pro\Extensions\php\php7.3.4nts\php.ini> include_path update
d.

Current include path : .;C:\php\pear
Configured directory : E:\phpstudy_pro\Extensions\php\php7.3.4nts\pear

Currently used php.ini (guess) : E:\phpstudy_pro\Extensions\php\php7.3.4nts\php.ini
Press Enter to continue:

** WARNING! Old version found at C:\Windows\system32\pear.bat, please remove it
or be sure to use the new e:\phpstudy_pro\extensions\php\php7.3.4nts\pear.bat co
mmand

The 'pear' command is now at your service at e:\phpstudy_pro\extensions\php\php7.3.4nts\pear.bat

** The 'pear' command is not currently in your PATH, so you need to
** use 'e:\phpstudy_pro\extensions\php\php7.3.4nts\pear.bat' until you have adde
d
** 'E:\phpstudy_pro\Extensions\php\php7.3.4nts' to your PATH environment variabl
e.

Run it without parameters to see the available actions, try 'pear list'
to see what packages are installed, or 'pear help' for help.

For more information about PEAR, see:

http://pear.php.net/faq.php
http://pear.php.net/manual/

Thanks for using go-pear!


E:\phpstudy_pro\Extensions\php\php7.3.4nts>