Libmemcached compilation Error
1 Problem description
In order to stress test the memcached, the Memslab in Libmemcached was selected. The following error occurred during compilation:
CXX libmemcached/csl/libmemcached_libmemcached_la-context.loin file included from./libmemcached/common.h:114, From ./libmemcached/csl/common.h:50, from libmemcached/csl/context.cc:38:./libmemcached-1.0/memcached.h : 46:23:error:cinttypes:no such file or directorymake[1]: * * * [libmemcached/csl/libmemcached_libmemcached_ La-context.lo] Error 1make[1]: Leaving directory '/tmp/libmemcached-1.0.18 ' make: * * * [ALL] Error 2
2 resolution
Install the following packages:
Gcc44
Gcc44-c++
Libstdc++44-devel
To configure the compilation environment variable:
Export cc=/usr/bin/gcc44export CXX=/usr/bin/g++
Compile parameters Add--with-memcached:
./configure--prefix=/usr/local/libmemcached--with---enable-memaslap make make Install
More powerful Memaslap can be selected at compile time
Libmemcached compilation Error