编译redis2.6.2报zmalloc.c:223: undefined reference to__sync_add_and_fetch_4′解决方法
来源:互联网 发布:阿里云ostv破解 编辑:程序博客网 时间:2024/06/07 03:49
在vps上面编译redis 2.6 由于系统有点老,以至于编不过,报错undefined reference to
__sync_add_and_fetch_4′,google了下,发现好多人遇到我同样的问题,
zmalloc.o: In function zmalloc_used_memory':
__sync_add_and_fetch_4′
/home/xx/redis-2.6.2/src/zmalloc.c:223: undefined reference to
collect2: ld 返回 1
make[1]: *** [redis-server] 错误 1
make[1]: Leaving directory `/home/xx/redis-2.6.2/src’
make: *** [all] 错误 2
github上面一兄弟在src/Makefile开头加 CFLAGS= -march=i686解决了,但是我试了。继续google,发现google group里有个兄弟编辑了下src/.make_settings里的OPT,改为OPT=-O2 -march=i686。
make过了,但是接下来make test又过不了。报错如下
You need ‘tclsh8.5′ in order to run the Redis test
查了下资料,说是要最新的tcl,那就给你装个最新的吧http://www.linuxfromscratch.org/blfs/view/cvs/general/tcl.html
安装完后,总算可以了
参考资料:
https://github.com/antirez/redis/issues/736
https://groups.google.com/forum/#!msg/redis-db/NI_d00he39o/7GLi8uwZ1HEJ
http://marspring.mobi/redis-compile/
- 编译redis2.6.2报zmalloc.c:223: undefined reference to__sync_add_and_fetch_4′解决方法
- 编译redis2.6.2报zmalloc.c:223: undefined reference to__sync_add_and_fetch_4'解决方法
- 编译redis2.6.7报zmalloc.c:223: undefined reference to__sync_add_and_fetch_4'解决方法
- 32位Linux编译redis失败解决方法:zmalloc.c:223: undefined reference to `__sync_add_and_fetch_4`
- 编译报undefined reference to `__aeabi_uldivmod'错误
- 编译链接报undefined reference to error
- thrift 编译报错 undefined reference
- 关于编译gcc-4.5.0报错undefined reference to `__cxa_call_unexpected'的解决方法
- eclipse编译openwrt应用程序报Type undefined reference to `pthread_create'错误解决方法
- Openssl-1.0.0c编译报错 libcrypto.so: undefined reference to `ENGINE_load_aep'的问题
- linux下编译c代码时error:undefined reference to sem_init sem_wait 解决方法之一
- 编译安装redis报错zmalloc.h
- Ubuntu环境下CodeBlock报错“undefined reference”的解决方法
- Ubuntu 编译报错 undefined reference to ’d2i_RSAPrivateKey‘
- apache 编译报错:undefined reference to `apr_array_clear'
- Qt编译报错 undefined reference to vtable for ...
- android ndk编译报错undefined reference to __gxx_personality_v0
- 交叉编译linux内核,报undefined reference *** 错误
- C++ 随机数生成
- 自定义搜索帮助,类似C#的级联查询
- 590 - Always on the run
- Nginx相关整理
- jquery的AJAX跨域请求及跨域请求的原理
- 编译redis2.6.2报zmalloc.c:223: undefined reference to__sync_add_and_fetch_4′解决方法
- 尼尔森:人人网用户粘度高 活跃度超Facebook
- Flex页面跳转的五种实现方式
- siggraph 2007 course notes(online)
- Ubuntu 11.10编译Android 错误
- ubuntu C8650 android eclipse 手机 调试 ?????????? devices
- Java读取xml文件的四种方法
- IOS开发之----单例模式详解
- Java 类之间方法调用的总结