6.2 Compiling MySQL Cluster with Memcache Support

Support for the Memcache API is built automatically using the memcached and libevent sources included in the MySQL Cluster sources when compiling MySQL Cluster NDB 7.2.3 or later from source. By default, make install places the memcached binary in the MySQL Cluster installation bin directory, and the ndbmemcache engine shared object file ndb_engine.so in the installation lib directory.

You can disable use of the bundled memcached when building ndbmemcache, by using -DWITH_BUNDLED_MEMCACHED=OFF; you can instead use your own system's memcached server and sources, installed in path, with -DWITH_BUNDLED_MEMCACHED=OFF -DMEMCACHED_HOME=path. You can also cause your system's version of libevent to be used, rather than the version bundled with MySQL Cluster, by using the -DWITH_BUNDLED_LIBEVENT=OFF option.

For additional information about CMake options relating to ndbmemcache support, see Options for Compiling MySQL Cluster.

For general information about building MySQL Cluster, see Building MySQL Cluster from Source on Linux, and Compiling and Installing MySQL Cluster from Source on Windows. For information about building MySQL Server from source, see Installing MySQL from Source, as well as MySQL Source-Configuration Options.