安装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
问题描述:
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
相关文章推荐
- 安装 Gd库错误 [gd_png.lo] Error 1正确的解决办法
- 安装GD时的错误 make[2]: *** [gd_png.lo] Error 1
- 安装GD后不支持PNG或JPG的修复办法
- 转 安装php时报gd相关的错误(gd_ctx.c)
- 安装GD后不支持PNG或JPG的修复办法
- 安装GD后不支持PNG或JPG的修复办法
- Ubuntu14环境下minigui安装问题记录--object.lo错误
- ‘make: *** [ext/gd/gd.lo] 错误 1’
- 安装GD后不支持PNG或JPG的修复办法
- Linux下安装配置apache,mysql,php并支持gd,jpeg,png,freetype的方法
- wdcp安装错误 make: *** [ext/fileinfo/libmagic/apprentice.lo] Error
- 安装php时,make步骤报错make: *** [ext/gd/gd.lo] Error 1
- 编译php5.3.*时报gd_compat.c:4:18: error: png.h和gd_compat.c:8:22: error: jpeglib.h错误
- PIL安装详解,jpeg、zip、png 等错误
- php 5.4.X编译安装时报gd相关的错误(gd_ctx.c)的解决办法
- GD2.0安装和错误解决
- 转 安装php时报gd相关的错误(gd_ctx.c)
- php安装gd(freetype、jpeg、png、zlib)
- 安装php时报gd相关的错误(gd_ctx.c)
- configure error:安装php时出现configure: error: Unable to find gd.h anywhere under,错误解决