[pgsql-jp: 28436] PHPでPostgreSQLモジュールインストール失敗。

Norio Kikuta kikuta.norio @ nifty.ne.jp
2002年 12月 24日 (火) 11:23:34 JST


石井さんの書かれた、「PHP×PostgreSQLで作る最強Webシステム」を購入しました。

P96にある、PostgreSQLモジュールのインストールを行いましたが、./configureで止まってしまいます。
FreeBSD 4.7でApache1.3.27をPackageから、PHP 4.2.2とPostgreSQL 7.2.3は添付のCD-ROMから導
入しました。

ちょっと長くなりますが、以下に結果を表示します。

checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking for PHP prefix... /usr/local
checking for PHP
includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20020429
checking for PostgreSQL support... yes, shared
checking for PQescapeString in -lpq... yes
checking for PQsetnonblocking in -lpq... yes
checking for PQcmdTuples in -lpq... yes
checking for PQoidValue in -lpq... yes
checking for PQclientEncoding in -lpq... yes
checking for pg_encoding_to_char in -lpq... yes
checking build system type... i386-unknown-freebsdelf4.7
checking host system type... i386-unknown-freebsdelf4.7
checking for ranlib... ranlib
checking for ld used by GCC... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
loading cache /dev/null within ltconfig
ltconfig: you must specify a host type if you use '--no-verify'
Try `ltconfig --help' for more information
configure: error: libtool configure failed

となって、configureが停止してしまいます。
又、ltconfig --helpを実行するとhelp メッセージの最後に次のように表示されます。

LTMAIN is the `ltmain.sh' shell script fragment or `ltmain.c' program
that provides basic libtool functionality.

HOST is the canonical host system name [default=guessed].

LTMAIN が必要なのかはわかりませんが、私の環境にはありません。

このような場合には、この後どうすればよいのかがわかりません。

PHPでPostgreSQLモジュールをインストールするにはどうすればよいのでしょうか。

********************************
Norio Kikuta
E-Mail ; kikuta.norio @ nifty.ne.jp
********************************





pgsql-jp メーリングリストの案内