[PHP-users 26216] Re: PHP-4.4.0でconfiguRe: error

Tom ymep118 @ mail.goo.ne.jp
2005年 7月 20日 (水) 13:24:50 JST


Tom と申します。

> 4.3.11でphpinfo()すると、configureオプションに --with-pgsql=/usr
> とか書かれてませんか?

書かれてないです。

> libpq.soのありかをlocate, findなりで探してみてはいかがでしょうか。

/usr/local/pgsql/lib/ に libpq.so があったので
# ./configure --without-mysql --with-pgsql=/usr/local/pgsql/lib
 --with-apxs=/usr/local/apache/bin/apxs --enable-mbstring
とすると
checking for pg_config... not found
configure: error: Cannot find libpq-fe.h. 
Please specify correct PostgreSQL installation path
となります。

/usr/local/pgsql/include/ に libpq-fe.h があったので
# ./configure --without-mysql --with-pgsql=/usr/local/pgsql/include
 --with-apxs=/usr/local/apache/bin/apxs --enable-mbstring
とすると
checking for pg_config... not found
configure: error: Cannot find libpq.so. 
Please specify correct PostgreSQL installation path ---(*)
となります。

# ./configure --without-mysql --with-pgsql=/usr/local/pgsql
 --with-apxs=/usr/local/apache/bin/apxs --enable-mbstring
としても (*) となります。

よろしくお願いします。


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