PEAR パッケージマネージャをインストールする
[root@falcon21 ~]# wget http://pear.php.net/go-pear.phar
--2018-05-31 16:03:08-- http://pear.php.net/go-pear.phar
pear.php.net (pear.php.net) をDNSに問いあわせています... 109.203.101.62
pear.php.net (pear.php.net)|109.203.101.62|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 3597255 (3.4M) [text/plain]
`go-pear.phar' に保存中

100%[================================================>] 3,597,255 959KB/s 時間 3.7s

2018-05-31 16:03:12 (959 KB/s) - `go-pear.phar' へ保存完了 [3597255/3597255]

[root@falcon21 ~]# php go-pear.phar

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) : /usr
2. Temporary directory for processing : /tmp/pear/install
3. Temporary directory for downloads : /tmp/pear/install
4. Binaries directory : /usr/bin
5. PHP code directory ($php_dir) : /usr/share/pear
6. Documentation directory : /usr/docs
7. Data directory : /usr/data
8. User-modifiable configuration files directory : /usr/cfg
9. Public Web Files directory : /usr/www
10. System manual pages directory : /usr/man
11. Tests directory : /usr/tests
12. Name of configuration file : /etc/pear.conf

1-12, 'all' or Enter to continue: all
Installation base ($prefix) [/usr] :                                   //ここからすべて、空Enter 
Temporary directory for processing [/tmp/pear/install] :                    
Temporary directory for downloads [/tmp/pear/install] :
Binaries directory [$prefix/bin] :
PHP code directory ($php_dir) [$prefix/share/pear] :
Documentation directory [$prefix/docs] :
Data directory [$prefix/data] :
User-modifiable configuration files directory [$prefix/cfg] :
Public Web Files directory [$prefix/www] :
System manual pages directory [$prefix/man] :
Tests directory [$prefix/tests] :
Name of configuration file [/etc/pear.conf] :

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) : /usr
2. Temporary directory for processing : /tmp/pear/install
3. Temporary directory for downloads : /tmp/pear/install
4. Binaries directory : /usr/bin
5. PHP code directory ($php_dir) : /usr/share/pear
6. Documentation directory : /usr/docs
7. Data directory : /usr/data
8. User-modifiable configuration files directory : /usr/cfg
9. Public Web Files directory : /usr/www
10. System manual pages directory : /usr/man
11. Tests directory : /usr/tests
12. Name of configuration file : /etc/pear.conf

1-12, 'all' or Enter to continue:
Beginning install...
Configuration written to /etc/pear.conf...
Initialized registry...
Preparing to install...
installing phar:///root/go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.4.3.tar...
installing phar:///root/go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.4.1.tar...
installing phar:///root/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.10.5.tar...
installing phar:///root/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.1.1.tar...
installing phar:///root/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.4.2.tar...
install ok: channel://pear.php.net/Archive_Tar-1.4.3
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.2
install ok: channel://pear.php.net/PEAR-1.10.5
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! Backed up old pear to /bin/pear_old

The 'pear' command is now at your service at /usr/bin/pear

** The 'pear' command is not currently in your PATH, so you need to
** use '/usr/bin/pear' until you have added
** '/usr/bin' 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!




/ usr / bin'をPATH環境変数に追加

パスを確認する
[root@falcon21 ~]# echo $PATH
/root/.phpenv/bin:/root/perl5/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

[root@falcon21 ~]# export PATH="$PATH:/usr/bin/pear"

[root@falcon21 ~]# echo $PATH
/root/.phpenv/bin:/root/perl5/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/bin/pear


*********************************************

投票数:2 平均点:10.00

 
Back to Top