Previously, it was successfully installed on FreeBSD7.4, but the following problems were encountered during this installation on centos5.5: zmalloc. o: Infunctionzmalloc_used_memory ':/home/xx/redis-2.6.2/src/zmalloc. c: 223: undefinedreferenceto _ sync_add_and_fetch_4 'collec
The installation was successful on FreeBSD7.4, but the following problems were encountered during the installation on 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 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 to google and find a brother in google group edited the OPT in src/. make_settings and changed it 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