The installation was successful on FreeBSD7.4, but the following problems were encountered during the installation on centos5.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 returns 1
Make [1]: *** [redis-server] Error 1
Make [1]: Leaving directory '/home/xx/redis-2.6.2/src'
Make: *** [all] Error 2
On github, a brother added CFLAGS =-march = i686 at the beginning of src/Makefile, but I tried it. Continue google, found a brother in google group edited the OPT in src/. make_settings, changed to OPT =-O2-march = i686. Make has passed, but make test has not passed. The following error is reported:
You need 'tclsh8. 5' in order to run the Redis test
So the installation of the latest tcl,: http://downloads.sourceforge.net/tcl/tcl8.5.10-src.tar.gz after installation, finally make