歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> CentOS 5.5 32位上安裝Redis 2.6報錯解決

CentOS 5.5 32位上安裝Redis 2.6報錯解決

日期:2017/2/28 14:32:03   编辑:Linux教程

之前在FreeBSD7.4上安裝很順利就安裝了,但這次在CentOS 5.5上安裝時遇到了如下問題
zmalloc.o: In function zmalloc_used_memory':
/home/xx/redis-2.6.2/src/zmalloc.c:223: undefined reference to__sync_add_and_fetch_4′
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://downloads.sourceforge.net/tcl/tcl8.5.10-src.tar.gz 安裝完後,總算make過了。

Ubuntu 14.04下Redis安裝及簡單測試 http://www.linuxidc.com/Linux/2014-05/101544.htm

Redis集群明細文檔 http://www.linuxidc.com/Linux/2013-09/90118.htm

Ubuntu 12.10下安裝Redis(圖文詳解)+ Jedis連接Redis http://www.linuxidc.com/Linux/2013-06/85816.htm

Redis系列-安裝部署維護篇 http://www.linuxidc.com/Linux/2012-12/75627.htm

CentOS 6.3安裝Redis http://www.linuxidc.com/Linux/2012-12/75314.htm

Redis配置文件redis.conf 詳解 http://www.linuxidc.com/Linux/2013-11/92524.htm

Redis 的詳細介紹:請點這裡
Redis 的下載地址:請點這裡

更多CentOS相關信息見CentOS 專題頁面 http://www.linuxidc.com/topicnews.aspx?tid=14

Copyright © Linux教程網 All Rights Reserved