安装libmemcached遇到的问题

来源:互联网 发布:肇庆单片机工程师招聘 编辑:程序博客网 时间:2024/05/17 00:03
安装要注意的问题:(1)安装过程中不要忘了,--with-memcached,不然会提示你checking for memcached… noconfigure: 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′ followcollect2: ld returned 1 exit statusmake[2]: *** [clients/memslap] Error 1make[2]: Leaving directory `/home/zhangy/libmemcached-0.42′解决办法是 --disable-64bit CFLAGS=”-O3 -march=i686″。(3)--prefix=/usr/local/libmemcached也必须加上,否则libmemcached没有自己的目录,不好管理。
原创粉丝点击