[PHP-users 24749] with-gdでconfigureに失敗

樋口聡 satoshi @ mmp.jp
2005年 3月 1日 (火) 17:50:15 JST


樋口と申します。
現在下記環境でPHPをコンパイルしようとしていますが、with-gd を指定すると
configure で失敗してしまいます。
環境:
OS:     Cent-OS 3.4
PHP:    PHP-4.3.10
httpd:  Apache 2.0.53

最初、次の引数でconfigureを実行しました。
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql --disable-short-tags --enable-mbstring --enable-mbregex \
--enable-zend-multibyte --with-mcrypt --with-gd
(Snip)
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
If configure fails try --with-jpeg-dir=<DIR>
configure: error: libpng.(a|so) not found.

エラーが出たので、次は下の引数で実行しました。
$ ./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql --disable-short-tags --enable-mbstring --enable-mbregex \
--enable-zend-multibyte --with-mcrypt --with-gd --with-jpeg-dir=/usr/lib
(Snip)
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
configure: error: libjpeg.(a|so) not found.
エラーメッセージは変わりましたが、やはりエラーが出てしまいます。

マニュアル http://jp.php.net/manual/ja/faq.build.php#faq.build.not-found
に「5. configureを実行した際、GD、gdbmまたは他のパッケージのファイルまた
はライブラリを見つけることができないと言われます。」と書いてあったのでそ
の通りに試してみたところ、
CPPFLAGS=-I/usr/lib LDFLAGS=-L/usr/lib ./configure \
--with-apxs2=/usr/local/apache2/bin/apxs --with-mysql \
--disable-short-tags --enable-mbstring --enable-mbregex \
--enable-zend-multibyte --with-mcrypt \
--with-gd --with-jpeg-dir=/usr/lib
(Snip)
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
configure: error: libjpeg.(a|so) not found.
と同様のエラーになってしまいます。

必要なRPMが入っているか確認してみました。
$ rpm -qa | grep "gd"
gd-1.8.4-12.3.1
gdbm-devel-1.8.0-20
gdb-6.1post-1.20040607.52
gdbm-1.8.0-20
$ rpm -qa | grep "libjpeg"
libjpeg-6b-30
$ rpm -qa | grep "libpng"
libpng-1.2.2-25
$ rpm -qa | grep "freetype"
freetype-2.1.4-4.0
$ rpm -qa | grep "zlib"
zlib-1.1.4-8.1
zlib-devel-1.1.4-8.1
と表示され、入っているようです。

どのようにすれば、with-gd でconnfigure が成功するのでしょうか?
宜しくお願いいたします。
-- 
Satoshi Higuchi
URL: higuchi.mmp.jp
e-mail: satoshi @ mmp.jp





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