安装配置libmemcached

1、下载libmemcached

http://tangent.org/552/libmemcached.html

到这个地址下载libmemcached-0.38.tar.gz

tar -xzvf libmemcached-0.38.tar.gz

cd libmemcached-0.38

./configure --disable-64bit CFLAGS="-O3 -march=i686" && make && make install

注意:

在运行 ./configure 的时候,如果不加以上参数的话,可能会报以下错误:

clients/ms_thread.o:/home/Memcached/libmemcached-0.39/clients/ms_thread.c:208: more undefined references to `__sync_fetch_and_add_4' follow
collect2: ld returned 1 exit status
make[2]: *** [clients/memslap] 错误 1
make[2]: Leaving directory `/home/Memcached/libmemcached-0.39'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/Memcached/libmemcached-0.39'
make: *** [all] 错误 2

 

 

你可能感兴趣的:(职场,memcached,libmemcached,休闲,libmemcache)