---
title: "GD库安装要出错解决办法"
author: "yangyz1984"
date: "2011-07-20T22:45:09Z"
tags: []
categories: ["操作系统"]
slug: "gd"
draft: false
lastmod: "2011-07-20T22:45:09Z"
id: 1129226
url: "https://yyzstudy.iteye.com/blog/1129226"
---

GD2
@note:make时如果出错的话 copy两个文件到gd当前目录下
@Error:
gd_png.c:16:53: error: png.h: No such file or directory
png.h:395:21: error: pngconf.h: No such file or directory

cp /usr/local/libpng/include/png.h ./
cp /usr/local/libpng/include/pngconf.h ./