Problem installing memchached on CentOS6

Created:

2016-11-16 13:17:07 UTC

Modified:

2017-08-08 13:38:26 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Problem installing memchached on CentOS6

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Unable to install PHP memcached module on CentOS 6 by following instructions from https://devblog.plesk.com/2015/08/adding-custom-php-modules-in-plesk/

The following error occurred when installing:

/opt/plesk/php/5.6/bin/pecl install memcached:
...
...
...
configure: error: no, libmemcached sasl support is not enabled. Run configure with --disable-memcached-sasl to disable this check
ERROR: `/tmp/memcached/configure --with-libmemcached-dir=no' failed

Cause

Outdated version of libmemcached on CentOS 6 (0.31 version), but recent version of php-memcached required libmemcached 1.0, at least.

Resolution

Please execute the following:

# yum install zlib-devel gcc-c++ cyrus-sasl-devel
# wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
# tar -zxf libmemcached-1.0.18.tar.gz
# cd libmemcached-1.0.18
# ./configure --disable-shared --with-pic && make && make install
# /opt/plesk/php/5.6/bin/pecl install memcached
Have more questions? Submit a request
Please sign in to leave a comment.