xampp1.6.8 で Pear を使うには

現行の xampp(1.6.8) には、インストールしただけでは pear が使えない。


コマンドプロンプトで、go-pear.bat を実行。
go-pear.bat は xampp/php の下にある。

cd c:/xampp/php/



Are you installing a system-wide PEAR or a local copy?
(system|local) [system] :(Enter)

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

1-12, 'all' or Enter to continue:(Enter)
Beginning install...
Configuration written to C:\WINDOWS\pear.ini...
Initialized registry...
Preparing to install...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.2.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.3.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.7.1.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.2.tar...
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
install ok: channel://pear.php.net/Archive_Tar-1.3.2
install ok: channel://pear.php.net/Console_Getopt-1.2.3
install ok: channel://pear.php.net/Structures_Graph-1.0.2
install ok: channel://pear.php.net/PEAR-1.7.1
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:

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 ? [Y/n] :(Enter)

php.ini include_path updated.

Current include path : .;C:\xampp\php\pear\
Configured directory : C:\xampp\php\pear
Currently used php.ini (guess) : C:\xampp\php\php.ini
Press Enter to continue:

** WARNING! Old version found at C:\xampp\php, please remove it or be sure to use the new c:\xampp\php\pear.bat comma

The 'pear' command is now at your service at c:\xampp\php\pear.bat

** The 'pear' command is not currently in your PATH, so you need to
** use 'c:\xampp\php\pear.bat' until you have added
** 'C:\xampp\php' to your PATH environment variable.

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:


Thanks for using go-pear!

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.

続行するには何かキーを押してください . . .(Enter)

以上で pear のインストール終了。


C:\xampp\php>pear -V(Enter)
PEAR Version: 1.7.1
PHP Version: 5.2.6
Zend Engine Version: 2.2.0
Running on: Windows NT FLAKA 6.0 build 6001

xampp/php にパスを通しておけば、pear コマンドがどこからでも打ててラクチン。


        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30