Skip to content

Instantly share code, notes, and snippets.

@gz
Last active June 27, 2025 00:22
Show Gist options
  • Save gz/d649d27b11f3e8d043c405fec9ec1d51 to your computer and use it in GitHub Desktop.
Save gz/d649d27b11f3e8d043c405fec9ec1d51 to your computer and use it in GitHub Desktop.
set -ex
sudo apt-get build-dep libmemcached-tools
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/
LDFLAGS='-lpthread' CXXFLAGS='-fpermissive' CFLAGS='-Wno-errors -fpermissive' ./configure --enable-memaslap --with-pthread=yes
make -j12
sudo make install
sudo ldconfig
memaslap
@aagontuk
Copy link

Compilation is failing in Ubuntu 22.04. Probably a better way is to use libmemcached from here: https://github.com/awesomized/libmemcached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment