目次 |
---|
・VPSシルバープランのPEARについて ・PEARのインストール ・インストールされたか確認する |
[root@XXX ~]#curl http://pear.php.net/go-pear >go-pear.php [root@XXX ~]#php -q 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 following optional PEAR packages: PEAR_Frontend_Web-beta, PEAR_Frontend_Gtk2, MDB2.このあと、2回ほどEnterを押すと以下のような選択画面が表示されます。
1. Installation prefix ($prefix) : /root 2. Temporary files directory : $prefix/temp 3. Binaries directory : $prefix/bin 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ここで、1を選択し、/usr/share/pearに変更します。
[root@XXX ~]#/usr/share/pear/bin/pear -Vを実行します。バージョン情報が表示されればインストールOKです。