1) First of all i need to have installed Apache 2.2 with mod_cache
installed. So downloaded the apache 2.2 source code and compiled it
with the next steps:
a) ./configure --prefix=/usr/local/apache22 \
--exec-prefix=/usr/local/apache22 \
--enable-so --enable-rewrite --enable-cache
b) make && make install
2) Installed the apr_memcache library from source code:
a) wget
http://www.outoforder.cc/downloads/apr_memcache/apr_memcache-0.7.0.tar.bz2
b) tar xvjf apr_memcache-0.7.0.tar.bz2 && cd
apr_memcache-0.7.0/
c) ./configure --with-apr=/root/apr-1.4.5/ \
--with-apr-util=/usr/local/apr/bin/ \
--prefix=/usr/local/ \
--exec-prefix=/usr/local/
d) make && make install
3) Now installing the mod_memcached_cache module as below:
a) wget
http://modmemcachecache.googlecode.com/files/mod_memcached_cache-0.1.0.tar.bz2
b) tar xvzf mod_memcached_cache-0.1.0.tar.bz2
&& cd mod_memcached_cache-0.1.0
c) CFLAGS="-I/usr/local/src/httpd-2.2.9/modules/
cache/" \
d) ./configure --with-apxs=/usr/local/apache22/
bin/apxs \
--with-apr-memcache=/usr/local/apr/
e) make && make install
PROBLEM:
while executing the step 3.e make && make install the following
error occurs.
Making all in src
make[1]: Entering directory `/root/mod_memcached_cache-0.1.0/src'
make all-am
make[2]: Entering directory `/root/mod_memcached_cache-0.1.0/src'
source='mod_memcached_cache.c' object='mod_memcached_cache_la-
mod_memcached_cache.lo' libtool=yes \
depfile='.deps/mod_memcached_cache_la-mod_memcached_cache.Plo'
tmpdepfile='.deps/mod_memcached_cache_la-mod_memcached_cache.TPlo' \
depmode=gcc3 /bin/bash ../config/depcomp \
/usr/local/apr/build-1/libtool --mode=compile gcc -
DHAVE_CONFIG_H -I. -I. -I. -Wall -g -O2 -pthread -DLINUX=2 -
D_REENTRANT -D_GNU_SOURCE -I/usr/local/apache22/include -I/usr/local/
apr/include/apr-1 -I/usr/local/apr/include/apr-1 -g -O2 -c -o
mod_memcached_cache_la-mod_memcached_cache.lo `test -f
'mod_memcached_cache.c' || echo './'`mod_memcached_cache.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -O2 -pthread -DLINUX=2 -
D_REENTRANT -D_GNU_SOURCE -I/usr/local/apache22/include -I/usr/local/
apr/include/apr-1 -I/usr/local/apr/include/apr-1 -g -O2 -c
mod_memcached_cache.c -MT mod_memcached_cache_la-
mod_memcached_cache.lo -MD -MP -MF .deps/mod_memcached_cache_la-
mod_memcached_cache.TPlo -fPIC -DPIC -o .libs/mod_memcached_cache_la-
mod_memcached_cache.o
mod_memcached_cache.c:33:23: fatal error: mod_cache.h: No such file or
directory
compilation terminated.
make[2]: *** [mod_memcached_cache_la-mod_memcached_cache.lo] Error 1
make[2]: Leaving directory `/root/mod_memcached_cache-0.1.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/mod_memcached_cache-0.1.0/src'
make: *** [all-recursive] Error 1
can anyone tell me how to resolve this error??? will including
mod_cache.h file into /root/mod_memcached_cache-0.1.0/src/ solve the
issue???