[PHP-users 26051] GDのインストールについての質問です。

uetaka tetunori oosaka13 @ hotmail.co.jp
2005年 7月 2日 (土) 15:34:25 JST


上高と言います。

先日、1度お聞きしたのですが、
もう1度質問させていただきます。

phpでjpegファイルを処理を考え、
GDをインストールしようとしたところ、
うまくいきません。

zlib、libjpegのインストール後、
gd-2.0.33をインストールしました。
そしてPHPを再インストールしようとし、
./configure --with-gd=/usr/local --with-jpeg-dir=/usr/local 
--enable-gd-native-ttf=shared --with-zlib=/usr/local 
--with-zlib-dir=/usr/local
としたところ、エラーになりました。

configureの途中に
If configure fails try --with-png-dir=<DIR>
If configure fails try --with-xpm-dir=<DIR>
If configure fails try --with-freetype-dir=<DIR>
とあったんですが、
png、xpm、freetypeはインストールしていないので、
指定しませんでした。
これらは必ずインストールしまければならないのでしょうか?

下記はconfigureの途中からのものです。

checking for GD support... yes
checking for the location of libjpeg... /usr/local
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... shared
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for jpeg_read_header in -ljpeg... yes
If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>
If configure fails try --with-xpm-dir=<DIR>
If configure fails try --with-freetype-dir=<DIR>

  〜中略〜

configure: error: GD build test failed. Please check the config.log for 
details.


また、jpegファイルの縦横のサイズの変更等ができる
方法があったら教えてください。

よろしくお願いします。

_________________________________________________________________
MSN Hotmailで開運メルアド占い実施中 
http://promotion.msn.co.jp/hotmail/fortune/input_un.asp 



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