XCache > XCache 1.3 Installation Problem

When try to install 1.3, I get this error:
# phpize
# ./configure
# make
In file included from /usr/include/php/ext/date/lib/timelib.h:24,
from /usr/include/php/ext/date/php_date.h:24,
from /root/server/xcache-1.3.0/xcache.c:26:
/usr/include/php/ext/date/lib/timelib_structs.h:24:28: error:
timelib_config.h: No such file or directory
/root/server/xcache-1.3.0/xcache.c:2959: warning: initialization
discards qualifiers from pointer target type
make: *** [xcache.lo] Error 1

It is because it have problem searching .h file within the same directory.

Solution :
Note : Compiler assumed as gcc.

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

– Change following :
#include  <timelib_config.h>


#include “timelib_config.h” (or vice versa)


#include “/usr/include/php/ext/date/lib/timelib_config.h”

Save and exit from file.

and now try to run “make” again. It will install without any problem.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: