Skip to content

Instantly share code, notes, and snippets.

@nitriques
Last active November 19, 2015 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nitriques/7e9801e3630a4f635917 to your computer and use it in GitHub Desktop.
Save nitriques/7e9801e3630a4f635917 to your computer and use it in GitHub Desktop.
Memcached on Centos 6
# php memcached
# from: http://stackoverflow.com/questions/24407095/error-when-installing-pecl-memcached/30898513#30898513
# 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment