ひとり勉強ログ

ITエンジニアの勉強したことメモ

Apacheの設定vol5.~PEARのインストール~

Apacheの設定vol5.~PEARのインストール~

PEARのインストール

[bash] [root@localhost ~]# yum -y install php-pear 読み込んだプラグイン:fastestmirror, langpacks base | 3.6 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 updates/7/x86_64/primary_db | 2.2 MB 00:01 Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * extras: ftp.iij.ad.jp * updates: ftp.iij.ad.jp 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> パッケージ php-pear.noarch 1:1.9.4-21.el7 を インストール --> 依存性の処理をしています: php-xml のパッケージ: 1:php-pear-1.9.4-21.el7.noarch --> 依存性の処理をしています: php-posix のパッケージ: 1:php-pear-1.9.4-21.el7.noarch --> トランザクションの確認を実行しています。 ---> パッケージ php-process.x86_64 0:5.4.16-42.el7 を インストール ---> パッケージ php-xml.x86_64 0:5.4.16-42.el7 を インストール --> 依存性解決を終了しました。

依存性を解決しました


Package アーキテクチャ

                                バージョン               リポジトリー  容量

インストール中: php-pear noarch 1:1.9.4-21.el7 base 357 k 依存性関連でのインストールをします: php-process x86_64 5.4.16-42.el7 base 55 k php-xml x86_64 5.4.16-42.el7 base 125 k

トランザクションの要約

インストール 1 パッケージ (+2 個の依存関係のパッケージ)

総ダウンロード容量: 538 k インストール容量: 2.6 M Downloading packages: (1/3): php-process-5.4.16-42.el7.x86_64.rpm | 55 kB 00:00 (2/3): php-pear-1.9.4-21.el7.noarch.rpm | 357 kB 00:00

(3/3): php-xml-5.4.16-42.el7.x86_64.rpm | 125 kB 00:00

合計 658 kB/s | 538 kB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction インストール中 : php-process-5.4.16-42.el7.x86_64 1/3 インストール中 : php-xml-5.4.16-42.el7.x86_64 2/3 インストール中 : 1:php-pear-1.9.4-21.el7.noarch 3/3 検証中 : php-xml-5.4.16-42.el7.x86_64 1/3 検証中 : php-process-5.4.16-42.el7.x86_64 2/3 検証中 : 1:php-pear-1.9.4-21.el7.noarch 3/3

インストール: php-pear.noarch 1:1.9.4-21.el7

依存性関連をインストールしました: php-process.x86_64 0:5.4.16-42.el7 php-xml.x86_64 0:5.4.16-42.el7

完了しました! [/bash]

これでインストールが完了。

インストール済のパッケージの確認

[bash] [root@localhost ~]# pear list

Installed packages, channel pear.php.net:

Package Version State Archive_Tar 1.3.11 stable Console_Getopt 1.3.1 stable PEAR 1.9.4 stable Structures_Graph 1.0.4 stable XML_Util 1.2.1 stable [/bash]

PEARのアップグレード

[bash] [root@localhost ~]# pear upgrade pear WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update WARNING: "pear/Console_Getopt" is deprecated in favor of "pear/Console_GetoptPlus" downloading PEAR-1.10.1.tgz ... Starting to download PEAR-1.10.1.tgz (296,139 bytes) .............................done: 296,139 bytes downloading Archive_Tar-1.4.2.tgz ... Starting to download Archive_Tar-1.4.2.tgz (20,624 bytes) ...done: 20,624 bytes downloading Structures_Graph-1.1.1.tgz ... Starting to download Structures_Graph-1.1.1.tgz (12,579 bytes) ...done: 12,579 bytes downloading Console_Getopt-1.4.1.tgz ... Starting to download Console_Getopt-1.4.1.tgz (5,672 bytes) ...done: 5,672 bytes downloading XML_Util-1.3.0.tgz ... Starting to download XML_Util-1.3.0.tgz (17,351 bytes) ...done: 17,351 bytes upgrade ok: channel://pear.php.net/Archive_Tar-1.4.2 upgrade ok: channel://pear.php.net/Structures_Graph-1.1.1 upgrade ok: channel://pear.php.net/Console_Getopt-1.4.1 upgrade ok: channel://pear.php.net/XML_Util-1.3.0 upgrade ok: channel://pear.php.net/PEAR-1.10.1 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" [/bash]

「WARNING」と出ましたが、インストールされた様子。

上記のような「WARNING」が出た場合、チャネルを更新。 [bash] [root@localhost ~]# pear channel-update pear.php.net Updating channel "pear.php.net" Update of Channel "pear.php.net" succeeded [/bash]

pear.php.net」はPEARの公式チャンネル。