cannot add memcache to php due to libmemcached sasl support is not enabled
I’m using docker and try to build php7 with alpine linux 3.4 image.
While i’m trying to add extention of php by “docker-php-ext-install memcached” my screen show this message.
configure: error: no, libmemcached sasl support is not enabled. Run configure with --disable-memcached-sasl to disable this check
Here, my script that i plan to put into my Dockerfile.
apk update && apk add git cyrus-sasl-dev libmemcached-dev zlib-dev \ && git clone --branch 2.2.0 https://github.com/php-memcached-dev/php-memcached /usr/src/php/ext/memcached/ \ && docker-php-ext-install memcached
Previous configuration please referred to php:7-alpine-fpm docker image.
/ # apk info libmemcached-dev libmemcached-dev-1.0.18-r0 description: Client library and command line tools for memcached server (development files) libmemcached-dev-1.0.18-r0 webpage: http://libmemcached.org/ libmemcached-dev-1.0.18-r0 installed size: 524288
I’m not sure is it on purpose or not of libmemcached-dev package that
sasl is not configured.
Some tutorial suggest me to recompile libmemcached-dev and add —enable-sasl.
I do not know how to check package build configuration on existing libmemcached-dev
However, i can add memcached extension to my php after i disable sasl but i want to enable sasl in the future.
(from redmine: issue id 6174, created on 2016-09-18, closed on 2016-09-23)
- Revision c5ce6d07 by Natanael Copa on 2016-09-22T13:18:19Z:
main/libmemcached: enable sasl support ref #6174
- Revision 41502786 by Natanael Copa on 2016-09-22T13:24:32Z:
main/libmemcached: enable sasl support fixes #6174