[PHP-users 7873] php+gdのインストールエラー

北村敏昭 php-users@php.gr.jp
Mon, 3 Jun 2002 14:13:19 +0900


横浜の北村と申します。

>gdをphpで使用したいので、gd1.3を削除して、gd1.8.1のrpmファイルにてインストールし>ました。
gd1.8.1のrpmファイルだといけないと思い、gd1.8.3のtarファイル
にてインストールしました。

今度は、phpのconfigのところで、エラーが生じて、stopしてしまいます。
RedHat6.2jで、同じような経験をされた方いらっしゃいましたら、
御教示お願い致します。


<phpのconfig>
./configure --with-gd=/usr --with-jpeg-dir=/usr  --enable-mbstring --enable-mbstr-enc-trans  --enable-iconv --with-pgsql=/usr/local/pgsql  --with-oci8=/home/oracle/app --with-apache=/usr/local/src/apache_1.3.14 --enable-trans-sid --enable-versioning 


RedHat6.2J
php4.0.6
gd 1.8.3

エラーの内容

checking for jpeg_read_header in -ljpeg... yes
checking for the location of libpng... no
If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>
checking for the location of libXpm... no
If configure fails try --with-xpm-dir=<DIR>                       <ーーー
checking for freetype(2)... no
If configure fails try --with-freetype-dir=<DIR>
checking whether to include include FreeType 1.x support... no
checking whether to include T1lib support... no
configure: error: Unable to find libgd.(a|so) anywhere under /usr