私はこの質問のいくつかの例があることを知っていますが、私は解決策を見つけることができません。CentOSにPDOをインストールできない
私はphpのスクリプトが私にこのエラーを与えているApacheとPHPとCentOSの5.3
を実行しています:
Fatal error: Class 'PDO' not found in ...
私はphpinfo();
を実行し、「PDO」はページ上に存在する唯一の場所はです"Configure Command" '--disable-pdo'
行を入力します。
私は#yum install php-pdo
を試しましたが、パッケージは存在しません。
私も#pecl install pdo
を試みたと私は最後にこれらのエラーを取得:
/root/tmp/pear/PDO/pdo_dbh.c: In function 'pdo_stmt_instantiate':
/root/tmp/pear/PDO/pdo_dbh.c:410: error: 'zval' has no member named 'refcount'
/root/tmp/pear/PDO/pdo_dbh.c:411: error: 'zval' has no member named 'is_ref'
/root/tmp/pear/PDO/pdo_dbh.c: In function 'pdo_stmt_construct':
/root/tmp/pear/PDO/pdo_dbh.c:435: error: 'zend_fcall_info' has no member named 'object_pp'
/root/tmp/pear/PDO/pdo_dbh.c:458: error: 'zend_fcall_info_cache' has no member named 'object_pp'
/root/tmp/pear/PDO/pdo_dbh.c: In function 'zim_PDO_setAttribute':
/root/tmp/pear/PDO/pdo_dbh.c:752: error: 'zval' has no member named 'refcount'
/root/tmp/pear/PDO/pdo_dbh.c: In function 'zim_PDO_getAttribute':
/root/tmp/pear/PDO/pdo_dbh.c:818: error: 'zval' has no member named 'refcount'
/root/tmp/pear/PDO/pdo_dbh.c: In function 'pdo_hash_methods':
/root/tmp/pear/PDO/pdo_dbh.c:1122: warning: assignment discards qualifiers from pointer target type
/root/tmp/pear/PDO/pdo_dbh.c:1126: warning: assignment discards qualifiers from pointer target type
make: *** [pdo_dbh.lo] Error 1
ERROR: `make' failed
そして、php.netのドキュメント上では基本的にパッケージはPHP 5.1以降、PHPのインストールに標準装備されていますと言います。
php.iniにextension=pdo.so
行を追加してApacheを再起動しても問題は解決しません。助言がありますか?
'php-pdo'はCentOSのパッケージの正しい名前です。 'yum search php-pdo'を実行すると表示されますか? –
yum検索pdoのために得られる唯一の結果は、 "casenoupdown"パッケージの束です。私もyum clean allとyum updateを最近実行しました – chuckieDub
多分これは私の問題ですhttp://serverfault.com/questions/511779/cant-install-php-pdo – chuckieDub