error when installing pecl memcached
Solved it by using this combination:
- libmemcached release 1.0.16 - installed from source
- php-memcached release 2.1.0 - installed from source & Added memcached.so in php.in
I Hope this help.
If you don't need SASL, answer with this:
libmemcached directory [no] : no --disable-memcached-sasl
If you dont need sasl support here is an easy way to install 2.2.X:
pecl_memcached_ver="2.2.0"
pecl download memcached-${pecl_memcached_ver}
tar xzvf memcached-${pecl_memcached_ver}.tgz
cd memcached-${pecl_memcached_ver}/
phpize
./configure --disable-memcached-sasl
make
make install
cd ..
rm -r memcached-${pecl_memcached_ver}
echo "extension=memcached.so" > /etc/php5/fpm/conf.d/20-memcached.ini
Then run php5 -i
to test that it installed 2.2.x correctly
Step 1 - Install SASL:
yum install cyrus-sasl-devel
Step 2 - Compile libmemcached with SASL installed:
cd ~
wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
tar -zxvf libmemcached-1.0.18.tar.gz
cd libmemcached-1.0.18
./configure
make && make install
Step 3 - Install PHP Memcached:
pecl install memcached
(Do not specify libmemcached-dir
)