O'Reilly logo

Getting Started with Memcached by Ahmed Soliman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Compiling memcached from a source on Ubuntu (Simple)

In some cases, you might want to enable some of the memcached features that have to be baked-in during the compile time of the program. In this recipe, we will learn how to compile memcached from a source on Ubuntu

Getting ready

We will install the requirements of the package by using apt-get:

sudo apt-get install g++ make libevent-dev

This installed the C++ compiler , make, and the libevent library headers needed to compile memcached.

How to do it...

  1. Let's download the latest version of memcached in your home directory
    
    curl -O --location http://memcached.org/latest
    mv latest memcached-latest.tar.gz
    tar vxzf memcached-latest.tar.gz
    
  2. Next, let's configure and compile
    cd memcached-*
    ./configure && ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required