安装要注意的问题: (1)安装过程中不要忘了,--with-memcached,不然会提示你 checking for memcached… no configure: error: “could not find memcached binary” (2)你的memcached是不是1.2.4以上的,64位系统,如果不是会提示你 clients/ms_thread.o: In function `ms_setup_thread’: /home/zhangy/libmemcached-0.42/clients/ms_thread.c:225: undefined reference to `__sync_fetch_and_add_4′ clients/ms_thread.o:/home/zhangy/libmemcached-0.42/clients/ms_thread.c:196: more undefined references to `__sync_fetch_and_add_4′ follow collect2: ld returned 1 exit status make[2]: *** [clients/memslap] Error 1 make[2]: Leaving directory `/home/zhangy/libmemcached-0.42′ 解决办法是 --disable-64bit CFLAGS=”-O3 -march=i686″。 (3)--prefix=/usr/local/libmemcached也必须加上,否则libmemcached没有自己的目录,不好管理。
安装libmemcached遇到的问题
最新推荐文章于 2021-02-17 06:37:22 发布