2 errors generated.
make[1]: *** [libmemcached/libmemcached_libmemcached_la-byteorder.lo] Error 1
make: *** [all] Error 2
- In configure I changed the lines:
if ac_fn_cxx_try_compile “$LINENO”; then :
ac_cv_have_htonll=yes
else
ac_cv_have_htonll=no
fi
to:
ac_cv_have_htonll=no
- Then in clients/memflush.cc I changed the 2 instances of:
NULL 要大写
if (opt_servers == false)
to:
if (opt_servers == NULL)
安装 memcached 扩展
phpize
./configure --with-PHP-config=${phpconfig} --with-libmemcached-dir=/usr/local/libmemcached/ --enable-memcached-sasl
make && make install
最后在修改对应的php.ini文件增加扩展:
extension = “memcached.so”
重启 apache