오래전 이야기/Server

Install pear package

리눅스 엔지니어였던 2008. 9. 15. 16:53

 pear list


-bash: pear: command not found


 wget http://pear.php.net/go-pear -O go-pear.php


--18:50:27--  http://pear.php.net/go-pear
Resolving pear.php.net... 216.92.131.66
Connecting to pear.php.net|216.92.131.66|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 83218 (81K) [text/plain]
Saving to: `go-pear.php'

100%[========================================================================>] 83,218      67.1K/s   in 1.2s  

18:50:29 (67.1 KB/s) - `go-pear.php' saved [83218/83218]


 php go-pear.php


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: 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::

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
 7. Temporary files directory     : $prefix/temp

1-7, 'all' or Enter to continue: all
Installation prefix [/usr] :
Binaries directory [$prefix/bin] :
PHP code directory ($php_dir) [$prefix/share/pear] :
Documentation base directory [$php_dir/docs] :
Data base directory [$php_dir/data] :
Tests base directory [$php_dir/tests] :
Temporary files directory [$prefix/temp] :

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
 7. Temporary files directory     : $prefix/temp

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

The following PEAR packages are bundled with PHP: MDB2.
Would you like to install these as well? [Y/n] : Y

Loading zlib: ok
Downloading package: PEAR-stable......ok
Downloading package: Archive_Tar-stable....ok
Downloading package: Console_Getopt-stable....ok
Downloading package: Structures_Graph-stable....ok
Bootstrapping: PEAR...................(remote) ok
Bootstrapping: Archive_Tar............(remote) ok
Bootstrapping: Console_Getopt.........(remote) ok
Downloading package: MDB2.............ok
Extracting installer..................ok
warning: pear/PEAR requires package "pear/Archive_Tar" (version >= 1.3.1)
warning: pear/PEAR requires package "pear/Console_Getopt" (version >= 1.2)
warning: pear/PEAR requires package "pear/Structures_Graph" (version >= 1.0.2)
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
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.6.1
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/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 /usr/bin/pear


pear list


Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.3.2   stable
Console_Getopt   1.2.3   stable
MDB2             2.4.1   stable
PEAR             1.6.1   stable
Structures_Graph 1.0.2   stable