Linux installation Redis error and its solution __linux

Source: Internet
Author: User
Tags download redis gz file redis
Test in: Redis2.6.17 | CentOS 5.7

installation: download Redis directly on Linux via wget mode

wget http://download.redis.io/releases/redis-2.6.17.tar.gz
Unzip the downloaded redis-2.6.17.tar.gz file
TAR-ZXVF redis-2.6.17.tar.gz
into the unpacked folder
CD redis-2.6.17
Compiling the installation
Make

run: You can start the Redis service by executing the redis-server under the SRC folder:

$ src/redis-server
Redis Start screen is as follows:
You can access the Redis service by executing the REDIS-CLI under the SRC folder.
$ src/redis-cli
redis> set foo bar
ok
redis> get foo
"Bar"

problems that may occur during the installation: CentOS5.7 does not have GCC installed by default, which causes us to fail to make a success. Using Yum Installation:

Yum-y Install GCC
Make times the following error:
Zmalloc.h:50:31:error:jemalloc/jemalloc.h:no such file or directory
zmalloc.h:55:2: Error: #error "newer version of Jemalloc required "
make[1]: * * * [ADLIST.O] Error 1
make[1]: Leaving directory '/DATA0/SRC/REDIS-2.6.2/SRC ' Make
: * * * [ALL] Error 2

The reason is that Jemalloc overloads the malloc and free functions of ANSI C under Linux. Workaround: Add parameters when make.

Make MALLOC=LIBC
After make, a prompt appears

But do not test, usually can be used. If we run make test, we have the following hints

[Devnote@devnote src]$ make Test your
need TCL 8.5 or newer in order to run the Redis test make
: ***[test] error_1

The solution is to install tcl8.5 with Yum (or go to Tcl's official website http://www.tcl.tk/Download the 8.5 version, and refer to the website introduction for installation)

Yum Install Tcl

References: http://blog.csdn.net/liuxingyu_21/article/details/16116561
Http://redis.io/download http://www.oschina.net/question/12_18065

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.