質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.51%
CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

PHP

PHPは、Webサイト構築に特化して開発されたプログラミング言語です。大きな特徴のひとつは、HTMLに直接プログラムを埋め込むことができるという点です。PHPを用いることで、HTMLを動的コンテンツとして出力できます。HTMLがそのままブラウザに表示されるのに対し、PHPプログラムはサーバ側で実行された結果がブラウザに表示されるため、PHPスクリプトは「サーバサイドスクリプト」と呼ばれています。

PEAR

PEAR (PHP Extension and Application Repository)はPHPで利用する事ができるライブラリです。

Q&A

解決済

2回答

3527閲覧

MDB2がインストールできない

tajix14

総合スコア10

CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

PHP

PHPは、Webサイト構築に特化して開発されたプログラミング言語です。大きな特徴のひとつは、HTMLに直接プログラムを埋め込むことができるという点です。PHPを用いることで、HTMLを動的コンテンツとして出力できます。HTMLがそのままブラウザに表示されるのに対し、PHPプログラムはサーバ側で実行された結果がブラウザに表示されるため、PHPスクリプトは「サーバサイドスクリプト」と呼ばれています。

PEAR

PEAR (PHP Extension and Application Repository)はPHPで利用する事ができるライブラリです。

0グッド

0クリップ

投稿2016/07/27 13:03

環境は
Cent OS 6.8
PHP Version 5.6.22
です。

yum -y install php-pear
でPEARをインストールしました。

次に下記のコマンドでMDB2をインストールしようとしましたが、下記のようなエラーが出てしまいインストー出来ません。
何が間違っているかご教示戴けますでしょうか?
よろしくお願いいたします。

pear install MDB2_Driver_mysql

Warning: Invalid argument supplied for foreach() in Command.php on line 259
PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 259

Warning: Invalid argument supplied for foreach() in Command.php on line 259
PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 259

Warning: Invalid argument supplied for foreach() in Command.php on line 259
PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 259

Warning: Invalid argument supplied for foreach() in Command.php on line 259
PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 259

Warning: Invalid argument supplied for foreach() in Command.php on line 259
PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 259

Warning: Invalid argument supplied for foreach() in Command.php on line 259
PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 259

Warning: Invalid argument supplied for foreach() in Command.php on line 259
PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 259

Warning: Invalid argument supplied for foreach() in Command.php on line 259
PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 259

Warning: Invalid argument supplied for foreach() in Command.php on line 259
PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 259

Warning: Invalid argument supplied for foreach() in Command.php on line 259
PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 259

Warning: Invalid argument supplied for foreach() in Command.php on line 259
PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 259

Notice: Undefined index: honorsbaseinstall in Role.php on line 180
PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 180

Notice: Undefined index: honorsbaseinstall in Role.php on line 180
PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 180

Notice: Undefined index: honorsbaseinstall in Role.php on line 180
PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 180

Notice: Undefined index: honorsbaseinstall in Role.php on line 180
PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 180

Notice: Undefined index: honorsbaseinstall in Role.php on line 180
PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 180

Notice: Undefined index: honorsbaseinstall in Role.php on line 180
PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 180

Notice: Undefined index: honorsbaseinstall in Role.php on line 180
PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 180

Notice: Undefined index: honorsbaseinstall in Role.php on line 180
PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 180

Notice: Undefined index: honorsbaseinstall in Role.php on line 180
PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 180

Notice: Undefined index: installable in Role.php on line 145
PHP Notice: Undefined index: installable in /usr/share/pear/PEAR/Installer/Role.php on line 145

Notice: Undefined index: installable in Role.php on line 145
PHP Notice: Undefined index: installable in /usr/share/pear/PEAR/Installer/Role.php on line 145

Notice: Undefined index: installable in Role.php on line 145
PHP Notice: Undefined index: installable in /usr/share/pear/PEAR/Installer/Role.php on line 145

Notice: Undefined index: installable in Role.php on line 145
PHP Notice: Undefined index: installable in /usr/share/pear/PEAR/Installer/Role.php on line 145

Notice: Undefined index: installable in Role.php on line 145
PHP Notice: Undefined index: installable in /usr/share/pear/PEAR/Installer/Role.php on line 145

Notice: Undefined index: installable in Role.php on line 145
PHP Notice: Undefined index: installable in /usr/share/pear/PEAR/Installer/Role.php on line 145

延々続く
XML Extension not found

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

自己解決

yum install php-pear-MDB2.noarch

yum install php-pear-MDB2-Driver-mysql.noarch

で自己解決しました。

投稿2016/07/28 12:13

tajix14

総合スコア10

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

標準のリポジトリですか?

packagist からインストール
php.net からインストール

のほうがosに依存しないのでお勧めですが yum でインストールするのには何か理由がありますか?
※ yum は 古いソースの場合おおいのであまりお勧めはできません

投稿2016/07/27 14:04

asahina_dev

総合スコア610

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

tajix14

2016/07/28 12:12

ありがとうございます。 yumのまま yum install php-pear-MDB2.noarch yum install php-pear-MDB2-Driver-mysql.noarch で自己解決できました。 お手数をおかけ戴きありがとうございました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.51%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問