make: *** [ext/gd/libgd/gd_compat.lo] Error 1
2016-02-26 21:49
381 查看
升级系统,把php5.2.9升级到5.3.6,按照以前的编译参数,configure能正常通过,但是在make的时候提示:
In file included from /root/php-5.3.6/ext/gd/libgd/gd_compat.c:8:
/usr/local/jpeg/include/jpeglib.h:938: error: expected declaration specifiers or ‘…’ before ‘FILE’
/usr/local/jpeg/include/jpeglib.h:939: error: expected declaration specifiers or ‘…’ before ‘FILE’
make: *** [ext/gd/libgd/gd_compat.lo] Error 1
解决方法:
修改php-5.3.6/ext/gd/libgd/gd_compat.c 把png.h 改成绝对路径(这个在编译gd库的时候应该就碰到了,同样的路径即可)
并在# include <jpeglib.h> 前面增加一行 #include <stdio.h>
In file included from /root/php-5.3.6/ext/gd/libgd/gd_compat.c:8:
/usr/local/jpeg/include/jpeglib.h:938: error: expected declaration specifiers or ‘…’ before ‘FILE’
/usr/local/jpeg/include/jpeglib.h:939: error: expected declaration specifiers or ‘…’ before ‘FILE’
make: *** [ext/gd/libgd/gd_compat.lo] Error 1
解决方法:
修改php-5.3.6/ext/gd/libgd/gd_compat.c 把png.h 改成绝对路径(这个在编译gd库的时候应该就碰到了,同样的路径即可)
并在# include <jpeglib.h> 前面增加一行 #include <stdio.h>
相关文章推荐
- maven 笔记
- Java IO 之字节流
- progressbar,书写线程以10秒的时间完成其进度显示工作
- oracle中REGEXP_SUBSTR方法的使用
- WM_PAINT与WM_ERASEBKGND
- 安装mongo以及相关扩展
- CSS---弹性布局
- Tyvj1052(树形DP)
- [android] 表格布局和绝对布局
- Dinic 模板
- 阿里云搭建集群的过程记录(一)
- MySQL manager or server PID file could not be found! 的方法
- 关于WM_ERASEBKGND和WM_PAINT的深刻理解
- 关于一点coding.net与git配合在AndroidStudio/Idea上的使用笔记个的
- vlfeat dense sift理解
- sqlplus中文乱码的问题
- secureCRT rz sz 详解
- DNS--域名系统 随笔
- 回溯法的典型问题 八皇后 马踏棋盘 迷宫
- poj 1860 Currency Exchange (Bellman- Ford)