XCache 1.3 Installation Problem

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  

To

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

OR

#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.

No comments: