2006年4月 7日

Linux | PDO_PGSQLのインストール

PECL :: Bug #6115 :: PDO_PGSQL cannot be upgraded

I discovered while crawling through the configure file of the pdo_pgsql package, that it seems to pretend, that pdo is build statically. It checkes a variable called: PHP_PDO_SHARED So when i do:
export PHP_PDO_SHARED="true"
and than do
pear install -f http://pecl.php.net/get/PDO_PGSQL-1.0.1.tgz
everything installs and works fine.

PDOのPostgreSQLドライバがPEARでインストールできず苦戦していたところ発見した解決法。PHP_PDO_SHARED環境変数をセットすればうまくいった。
PDOを共有モジュールとしてインストールしていたからかな。それにしても説明がなさ過ぎる。
とりあえず結果オーライ。

ところでpeclでインストールするのと、pearでインストールするのでは何が違うのでしょうか?

Posted by otsuka : 01:55 | Comment (1) | Trackback (0)
Comment

はじめまして。
私もインストールに苦戦してGoogleからこちらにやってきました。
この方法を参考にさせて頂き、無事インストールが出来ました!
ありがとうございました。m(_ _)m

Posted by: nabejiru : 2006年6月 7日 13:53









名前、アドレスを登録しますか?