美文网首页
Mac 安装 memcached扩展支持sasl

Mac 安装 memcached扩展支持sasl

作者: 邱杉的博客 | 来源:发表于2018-04-19 13:04 被阅读0次
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?

相关文章

网友评论

      本文标题:Mac 安装 memcached扩展支持sasl

      本文链接:https://www.haomeiwen.com/subject/hfkwkftx.html