pear php

インストール
http://pear.php.net/go-pear
出た内容をgo-pear.phpに保存

cmdプロンプトから、


php.exe go-pear.php
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\xampplite\htdocs2\lib\pear>php.exe go-pear.php
PHP Warning: PHP Startup: Unable to load dynamic library '\xampplite\php\ext\ph
p_pdf.dll' - 指定されたモジュールが見つかりません。
in Unknown on line 0
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::

We do not find any php.exe, please select the php.exe folder (CLI is
recommanded, usually in c:\php\cli\php.exe)

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:\xampplite\htdocs2\lib\pear
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 :

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

*********************************
WARNING! We found php.exe under , it uses an unknown SAPI.
PEAR commandline tool has not been tested with it.
If you have a CLI (or CGI) php.exe available, we strongly recommand to use it.

php.exe (sapi: unknown) 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 prefix ($prefix) : C:\xampplite\htdocs2\lib\pear
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:\xampplite\php\php.exe

1-8, '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

Loading zlib: ok

Bootstrapping Installer...................
Bootstrapping PEAR.php............(remote) ok
Bootstrapping Archive/Tar.php............(remote) ok
Bootstrapping Console/Getopt.php............(remote) ok

Extracting installer..................
Downloading package: PEAR.............ok
Downloading package: Structures_Graph....ok

Preparing installer..................
Updating channel "pear.php.net"
Update of Channel "pear.php.net" succeeded
Updating channel "pecl.php.net"
Update of Channel "pecl.php.net" succeeded

Installing selected packages..................
Downloading and installing package: PEAR.............warning: pear/PEAR requires
package "pear/Archive_Tar" (recommended version 1.3.2)
warning: pear/PEAR requires package "pear/Structures_Graph" (recommended version
1.0.2)
warning: pear/PEAR requires package "pear/Console_Getopt" (recommended version 1
.2.3)
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
downloading PEAR-1.7.2.tgz ...
Starting to download PEAR-1.7.2.tgz (302,744 bytes)
.............................................................done: 302,744 bytes

install ok: channel://pear.php.net/PEAR-1.7.2
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"
Installing bootstrap package: Structures_Graph.......install ok: channel://pear.
php.net/Structures_Graph-1.0.2
Downloading and installing package: Archive_Tar-stable.......downloading Archive
_Tar-1.3.2.tgz ...
Starting to download Archive_Tar-1.3.2.tgz (17,150 bytes)
...done: 17,150 bytes
install ok: channel://pear.php.net/Archive_Tar-1.3.2
Downloading and installing package: Console_Getopt-stable.......downloading Cons
ole_Getopt-1.2.3.tgz ...
Starting to download Console_Getopt-1.2.3.tgz (4,011 bytes)
...done: 4,011 bytes
install ok: channel://pear.php.net/Console_Getopt-1.2.3
Downloading and installing package: PEAR_Frontend_Web-beta.......downloading PEA
R_Frontend_Web-0.7.3.tgz ...
Starting to download PEAR_Frontend_Web-0.7.3.tgz (53,152 bytes)
...done: 53,152 bytes
downloading HTML_Template_IT-1.2.1.tgz ...
Starting to download HTML_Template_IT-1.2.1.tgz (21,565 bytes)
...done: 21,565 bytes
install ok: channel://pear.php.net/HTML_Template_IT-1.2.1
install ok: channel://pear.php.net/PEAR_Frontend_Web-0.7.3
Downloading and installing package: PEAR_Frontend_Gtk2.......Did not download op
tional dependencies: pear/XML_Parser, pear/XML_Util, use --alldeps to download a
utomatically
Did not download optional dependencies: pear/System_Command, use --alldeps to do
wnload automatically
pear/PEAR_Frontend_Gtk2 requires PHP extension "php-gtk" (version >= 2.0.0dev)
pear/Config can optionally use package "pear/XML_Parser"
pear/Config can optionally use package "pear/XML_Util"
pear/Gtk2_EntryDialog requires PHP extension "php-gtk" (version >= 2.0.0dev)
pear/Gtk2_FileDrop requires PHP extension "php-gtk" (version >= 2.0.0dev)
pear/MIME_Type can optionally use package "pear/System_Command"
downloading Config-1.10.11.tgz ...
Starting to download Config-1.10.11.tgz (27,939 bytes)
...done: 27,939 bytes
downloading MIME_Type-1.2.0.tgz ...
Starting to download MIME_Type-1.2.0.tgz (11,581 bytes)
...done: 11,581 bytes
install ok: channel://pear.php.net/Config-1.10.11
install ok: channel://pear.php.net/MIME_Type-1.2.0
Downloading and installing package: MDB2.............downloading MDB2-2.4.1.tgz
...
Starting to download MDB2-2.4.1.tgz (119,790 bytes)
...done: 119,790 bytes
install ok: channel://pear.php.net/MDB2-2.4.1
MDB2: Optional feature fbsql available (Frontbase SQL driver for MDB2)
MDB2: Optional feature ibase available (Interbase/Firebird driver for MDB2)
MDB2: Optional feature mysql available (MySQL driver for MDB2)
MDB2: Optional feature mysqli available (MySQLi driver for MDB2)
MDB2: Optional feature mssql available (MS SQL Server driver for MDB2)
MDB2: Optional feature oci8 available (Oracle driver for MDB2)
MDB2: Optional feature pgsql available (PostgreSQL driver for MDB2)
MDB2: Optional feature querysim available (Querysim driver for MDB2)
MDB2: Optional feature sqlite available (SQLite2 driver for MDB2)
MDB2: To install optional features use "pear install pear/MDB2#featurename"

The 'pear' command is now at your service at c:\xampplite\htdocs2\lib\pear\pear.
bat

** The 'pear' command is not currently in your PATH, so you need to
** use 'c:\xampplite\htdocs2\lib\pear\pear.bat' until you have added
** 'C:\xampplite\htdocs2\lib\pear' 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:

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

Thanks for using go-pear!



WINDOWS ENVIRONMENT VARIABLES *
For convenience, a REG file is available under C:\xampplite\htdocs2\lib\pear\PEA
R_ENV.reg .
This file creates ENV variables for the current user.

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



C:\xampplite\htdocs2\lib\pear>



とても適当に、入れる。あってるのかは不明。