|
|
以前一直没有装GD库,刚好今天想升级PHP4
遇到如下问题
./configure --prefix=/usr/local/php5 --with-gd=/usr/modules/gd2 --with-jpeg-dir=/usr/local/modules/jpeg6 --with-zlib --with-png --with-freetype-dir=/usr/local/modules/freetype --with-apxs2=/usr/local/apache/bin/apxs --enable-track-vars --enable-ftp --with-xml
checking whether to enable truetype string function in GD... no
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>
configure: error: Unable to find gd.h anywhere under /usr/modules/gd2
如果去掉--with-gd=/usr/modules/gd2可以编译
是因为装zlib libpng 没有指定目录的 关系吗?
XPM可以不装吗?我是FC4装XPM-3.4K。RPM时缺少依赖包所以没装XPM |
|