- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我正在尝试安装 repcached - memcached which implemented multi master asynchronous replication feature在它的版本 memcached-1.2.8-repcached-2.2.1 Download .
运行 make
后出现以下错误:
make all-recursive
make1: 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.c
'./'memcached.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'
make1: * [all-recursive] Error 1
make1: Leaving directory `/usr/local/src/pro/memcached-1.2.8-repcached-2.2.1'
make: * [all] Error 2
操作系统:Centos5.7 64位
gcc-4.1.2-51.el5
gcc-c++-4.1.2-51.el5
libgcc-4.1.2-51.el5
注意:已经安装了 Memcached 和 php 的 memcache 扩展
root@server[~]# memcached -h
memcached 1.4.5
最佳答案
尝试使用 -D_XOPEN_SOURCE=500 进行编译,因此定义了 IOV_MAX
。
关于php - MemCache-repcached编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9023338/
我是一名优秀的程序员,十分优秀!