Mac 安装 memcached扩展支持sasl

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

How can I install libmemcached for Mac OS X Yosemite 10.10 in order to install the memcached.so PHP extension on Mamp 3?

    原文作者:邱杉的博客
    原文地址: https://www.jianshu.com/p/789f93c2f1c3
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞