LinuxSir.cn,穿越时空的Linuxsir!

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

安装php出错!

[复制链接]
发表于 2006-10-26 11:32:35 | 显示全部楼层 |阅读模式
环境fc5 apach mysql gd xml都安装完成
安装php
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-gd --with-jpeg-dir --with-ttf --with-zlib-dir --with-png-dir --with-mysql --enable-track-vars

时出错:
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... no
configure: error: Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information.

config.log:
collect2: ld returned 1 exit status
configure: failed program was:
#line 34774 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char png_write_image();

int main() {
png_write_image()
; return 0; }
 楼主| 发表于 2006-10-26 13:33:01 | 显示全部楼层

问题已解决!

重新编译安装libpng包就好了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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