系统CentOS5.8,rhel5.8和CentOS5.6

php5.1.6为yum安装

xcache2.0.1源码包

报错忘了截图了,然后在google找到如下,这个差不多,但是笔者的报错比这个多两行;

/usr/include/php/ext/date/lib/timelib_structs.h:24:28: error: timelib_config.h: No such file or directory

 

解决方案:

 

# vi /usr/include/php/ext/date/lib/timelib_structs.h 

#include <timelib_config.h>

修改如下:

#include "timelib_config.h"

 

重新编译即可通过.