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

Moriyoshi Koizumi php-users@php.gr.jp
Tue, 04 Jun 2002 01:29:27 +0900


小泉@町田です。

GD がらみのビルド時のエラーの原因の多くは
複数のバージョンのGDがいろいろなところにあることだそうで、
(例えば /usr/lib と /usr/local/lib の2つに、ということです。)

それでインストールされているGDのバージョンを誤認識してしまうことが
あると聞きました。

まあ、ひとまず、php だけではなくて、
GDのインストール時のオプションなども書いた方が
他の識者の方の回答が得られやすいと思います。

北村敏昭 <toshiaki@mx4.mesh.ne.jp> wrote:

> 横浜の北村と申します。
> 
> >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
> _______________________________________________
> PHP-users mailing list
> PHP-users@php.gr.jp
> http://ns1.php.gr.jp/mailman/listinfo/php-users