MemCache-repcached compile error
Posted
by
Ramy Allam
on Server Fault
See other posts from Server Fault
or by Ramy Allam
Published on 2012-01-26T18:34:29Z
Indexed on
2012/04/02
23:32 UTC
Read the original article
Hit count: 576
I'm trying to install [memcached-1.2.8-repcached-2.2.1]( http://sourceforge.net/projects/repcached/files/latest/download?source=files)
And I have the following error after running the make
command:
make all-recursive
make[1]: Entering directory `/usr/local/src/pro/memcached-1.2.8-repcached-2.2.1'
Making all in doc
make[2]: Entering directory `/usr/local/src/pro/memcached-1.2.8-repcached-2.2.1/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/pro/memcached-1.2.8-repcached-2.2.1/doc'
make[2]: Entering directory `/usr/local/src/pro/memcached-1.2.8-repcached-2.2.1'
gcc -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -MT memcached-memcached.o -MD -MP -MF .d> eps/memcached-memcached.Tpo -c -o memcached-memcached.o
test -f 'memcached.c' || echo './'
memcached.cmemcached.c: In function ‘add_iov’:
memcached.c:697: error: ‘IOV_MAX’ undeclared (first use in this function)
memcached.c:697: error: (Each undeclared identifier is reported only once
memcached.c:697: error: for each function it appears in.)
make[2]: * [memcached-memcached.o] Error 1
make[2]: Leaving directory `/usr/local/src/pro/memcached-1.2.8-repcached-2.2.1'
make[1]: * [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/pro/memcached-1.2.8-repcached-2.2.1'
make: * [all] Error 2
OS : Centos5.7 64bit
gcc-4.1.2-51.el5
gcc-c++-4.1.2-51.el5
libgcc-4.1.2-51.el5
Note : Memcached and memcache extension for php are already installed
root@server[~]# memcached -h
memcached 1.4.5
© Server Fault or respective owner