您的位置:首页 > 其它

安装GD2时的错误:gd_png.lo

2012-03-18 14:15 281 查看
Centos 5.6 安装php环境

问题描述:

make[2]: *** [gd_png.lo] 错误 1
make[2]: Leaving directory `/usr/src/gd-2.0.35'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/usr/src/gd-2.0.35'
make: *** [all] 错误 2

解决办法:(红字修改部分)

[root@gfwebserver gd-2.0.35]# vi gd_png.c

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "gd.h"

#ifdef HAVE_LIBPNG

#include "gdhelpers.h"
#include "/usr/local/libpng/include/png.h"

#define TRUE 1
#define FALSE 0

本文出自 “屌丝运维男” 博客,请务必保留此出处http://navyaijm.blog.51cto.com/4647068/809422
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: