LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 732|回复: 0

PHP5与GD的问题

[复制链接]
发表于 2005-9-15 16:20:51 | 显示全部楼层 |阅读模式
以前一直没有装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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表