[PHP-users 30803] configure時にpostgreSQLの関数が読み込めない

Mizuta Yukio yukio0809 @ hotmail.com
2006年 11月 27日 (月) 12:57:02 JST


水田と申します。はじめて投稿します。
初心者ですが、どうぞよろしくお願いいたします。

現在、PHP5.1.6をテスト用Linuxサーバにインストールしているのですが、
/configure時に次のようになり、pg_prepareなどの関数が使えず困って
おります。

checking for PostgreSQL support... yes
checking for pg_config... /usr/local/pgsql/bin/pg_config
checking for PQescapeString in -lpq... (cached) no
checking for PQunescapeBytea in -lpq... (cached) no
checking for PQsetnonblocking in -lpq... (cached) no
checking for PQcmdTuples in -lpq... (cached) no
checking for PQoidValue in -lpq... (cached) no
checking for PQclientEncoding in -lpq... (cached) no
checking for PQparameterStatus in -lpq... (cached) no
checking for PQprotocolVersion in -lpq... (cached) no
checking for PQtransactionStatus in -lpq... (cached) no
checking for PQexecParams in -lpq... (cached) yes
checking for PQprepare in -lpq... (cached) no
checking for PQexecPrepared in -lpq... (cached) yes
checking for PQresultErrorField in -lpq... (cached) no
checking for PQsendQueryParams in -lpq... (cached) yes
checking for PQsendPrepare in -lpq... (cached) yes
checking for PQsendQueryPrepared in -lpq... (cached) yes
checking for PQputCopyData in -lpq... (cached) yes
checking for PQputCopyEnd in -lpq... (cached) yes
checking for PQgetCopyData in -lpq... (cached) yes
checking for PQsetErrorVerbosity in -lpq... (cached) yes
checking for PQftable in -lpq... (cached) yes
checking for PQescapeStringConn in -lpq... (cached) no
checking for PQescapeByteaConn in -lpq... (cached) no
checking for pg_encoding_to_char in -lpq... (cached) no

※上記で「no」になっている部分に対応する関数が使えないようです。

/configureのオプションは下記のとおりです。

/configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-mbstring --enable-mbregex 
 --enable-zend-multibyte --enable-cli --with-gettext --with-mysql=/usr/local/mysql 
 --with-pgsql=/usr/local/pgsql --with-mysqli=/usr/local/mysql/bin/mysql_config 
 --enable-ftp --with-openssl --with-pdo-pgsql --with-pear

また、環境は以下のとおりです。

Turbo Linux 10 Server / Apache 2.0.59 / PostgreSQL8.1.4 / PHP5.1.6

なにか、pg_configに問題があるのではと思い、PostgreSQLを再インストール
(正確には8.1.5にバージョンアップしました)したり、またPHPも5.2.0で試して
見ましたが同じ結果でした。

どうすればPostgreSQL関連の関数が使えるようになるでしょうか。
ご教授いただければ幸いです。



PHP-users メーリングリストの案内