Skip to content

Instantly share code, notes, and snippets.

@gz
Last active June 9, 2023 12:01
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment