Web 2.0 网站架构、优化 数据库架构
« »
2010年04月25号Tech

安装libmemcached报错记录

安装pecl的memcached前,需要先安装libmemcached,但 是今天在centos上安装时,遇到了诡异的错误: clients/ms_conn.o: In function `ms_get_udp_request_id’: /download/libmemcached-0.38/clients/ms_conn.c:194: undefined reference to `__sync_fetch_and_add_4′ clients/ms_conn.o: In function `ms_reconn_socks’: /download/libmemcached-0.38/clients/ms_conn.c:1051: undefined reference to `__sync_fetch_and_add_4′ clients/ms_conn.o: In function `ms_reconn’: /download/libmemcached-0.38/clients/ms_conn.c:919: undefined reference to `__sync_fetch_and_add_4′ /download/libmemcached-0.38/clients/ms_conn.c:956: undefined reference to `__sync_fetch_and_add_4′ clients/ms_thread.o: In function `ms_setup_thread’: /download/libmemcached-0.38/clients/ms_thread.c:225: undefined reference to `__sync_fetch_and_add_4′ clients/ms_thread.o:/download/libmemcached-0.38/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] Error 1

解决方案如下:

./configure –with-memcached=/app/memcached/bin/memcached –disable-64bit CFLAGS=”-O3 -march=i686″

日志信息 »

该日志于2010-04-25 21:56由 admin 发表在Tech分类下, 你可以发表评论。除了可以将这个日志以保留源地址及作者的情况下引用到你的网站或博客,还可以通过RSS 2.0订阅这个日志的所有评论。

1条评论

  1. li5219 说:

    这个解决方案也很诡异哦

    不过能行

发表评论 »

返回顶部