pear インストールしなおし

[root@ns1 root]# lynx -source http://go-pear.org | php
X-Powered-By: PHP/4.2.4-dev
Content-type: text/html

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 PEAR packages bundled
with PHP: DB, Net_Socket, Net_SMTP, Mail, XML_Parser, PHPUnit.


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 : /usr
2. Binaries directory : $prefix/bin
3. PHP code directory ($php_dir) : $prefix/share/pear
4. Documentation base directory : $php_dir/docs
5. Data base directory : $php_dir/data
6. Tests base directory : $php_dir/tests

1-6, 'all' or Enter to continue: all /usr/bin

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 : /usr
2. Binaries directory : $prefix/bin
3. PHP code directory ($php_dir) : $prefix/share/pear
4. Documentation base directory : $php_dir/docs
5. Data base directory : $php_dir/data
6. Tests base directory : $php_dir/tests

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

The following PEAR packages are bundled with PHP: DB, Net_Socket, Net_SMTP,
Mail, XML_Parser, PHPUnit.
Would you like to install these as well? [Y/n] : Y

Loading zlib: ok
Array
(
)
Downloading package: PEAR-stable......ok
Downloading package: Archive_Tar-stable....ok
Downloading package: Console_Getopt-stable....ok
Downloading package: XML_RPC-stable....ok
Bootstrapping: PEAR...................(remote) ok
Bootstrapping: Archive_Tar............(remote) ok
Bootstrapping: Console_Getopt.........(remote) ok
Downloading package: DB...............ok
Downloading package: Net_Socket.......ok
Downloading package: Net_SMTP.........ok
Downloading package: Mail.............ok
Downloading package: XML_Parser.......ok
Downloading package: PHPUnit..........ok
Extracting installer..................ok
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
pear/PEAR can optionally use package "pear/PEAR_Frontend_Web" (version >= 0.5.0)
pear/PEAR can optionally use package "pear/PEAR_Frontend_Gtk" (version >= 0.4.0)
install ok: channel://pear.php.net/PEAR-1.4.7
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
install ok: channel://pear.php.net/Archive_Tar-1.3.1
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
install ok: channel://pear.php.net/Console_Getopt-1.2
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
install ok: channel://pear.php.net/XML_RPC-1.4.5
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
install ok: channel://pear.php.net/DB-1.7.6
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
install ok: channel://pear.php.net/Net_Socket-1.0.6
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
install ok: channel://pear.php.net/Net_SMTP-1.2.8
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
install ok: channel://pear.php.net/Mail-1.1.9
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
install ok: channel://pear.php.net/XML_Parser-1.2.7
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
warning: pear/PHPUnit requires PHP (version >= 4.3.0, version <= 6.0.0), installed version is 4.2.4-dev
pear/PHPUnit can optionally use package "pear/PHP_Compat"
install ok: channel://pear.php.net/PHPUnit-1.3.2

The 'pear' command is now at your service at /usr/bin/pear
[root@ns1 root]# pear
Commands:
build Build an Extension From C Source
bundle Unpacks a Pecl Package
channel-add Add a Channel
channel-alias Specify an alias to a channel name
channel-delete Remove a Channel From the List
channel-discover Initialize a Channel from its server
channel-info Retrieve Information on a Channel
channel-update Update an Existing Channel
clear-cache Clear Web Services Cache
config-create Create a Default configuration file
config-get Show One Setting
config-help Show Information About Setting
config-set Change Setting
config-show Show All Settings
convert Convert a package.xml 1.0 to package.xml 2.0 format
cvsdiff Run a "cvs diff" for all files in a package
cvstag Set CVS Release Tag
download Download Package
download-all Downloads each available package from the default channel
info Display information about a package
install Install Package
list List Installed Packages In The Default Channel
list-all List All Packages
list-channels List Available Channels
list-files List Files In Installed Package
list-upgrades List Available Upgrades
login Connects and authenticates to remote server
logout Logs out from the remote server
makerpm Builds an RPM spec file from a PEAR package
package Build Package
package-dependencies Show package dependencies
package-validate Validate Package Consistency
pickle Build PECL Package
remote-info Information About Remote Packages
remote-list List Remote Packages
run-scripts Run Post-Install Scripts bundled with a package
run-tests Run Regression Tests
search Search remote package database
shell-test Shell Script Test
sign Sign a package distribution file
uninstall Un-install Package
update-channels Update the Channel List
upgrade Upgrade Package
upgrade-all Upgrade All Packages
Usage: pear [options] command [command-options]
Type "pear help options" to list all options.
Type "pear help shortcuts" to list all command shortcuts.
Type "pear help " to get the help for the specified command.
[root@ns1 root]# pear list-all
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update



[2]+ Stopped pear list-all
[root@ns1 root]# php list
[root@ns1 root]# pear list
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.1 stable
Auth_SASL 1.0.1 stable
Console_Getopt 1.2 stable
DB 1.7.6 stable
Mail 1.1.9 stable
Mail_Mime 1.3.1 stable
Net_SMTP 1.2.8 stable
Net_Socket 1.0.6 stable
PEAR 1.4.7 stable
PHPUnit 1.3.2 stable
XML_Parser 1.2.7 stable
XML_RPC 1.4.5 stable
[root@ns1 root]# pear install Mail_queue
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
downloading Mail_Queue-1.1.3.tgz ...
Starting to download Mail_Queue-1.1.3.tgz (14,721 bytes)
.....done: 14,721 bytes
install ok: channel://pear.php.net/Mail_Queue-1.1.3
[root@ns1 root]# pear list
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.1 stable
Auth_SASL 1.0.1 stable
Console_Getopt 1.2 stable
DB 1.7.6 stable
Mail 1.1.9 stable
Mail_Mime 1.3.1 stable
Mail_Queue 1.1.3 stable
Net_SMTP 1.2.8 stable
Net_Socket 1.0.6 stable
PEAR 1.4.7 stable
PHPUnit 1.3.2 stable
XML_Parser 1.2.7 stable
XML_RPC 1.4.5 stable
[root@ns1 root]#