centOS6.3 Install Redis make error zmalloc.h:50:31: Error: jemalloc/jemalloc.h: no file or directory

Source: Internet
Author: User
Tags redis install redis

Reason Analysis:

There is a Readme file under the Redis unpacking package that opens this file for a passage.

Llocator
---------


Selecting a Non-default memory allocator when building Redis are done by setting
The ' MALLOC ' environment variable. Redis is compiled and linked against LIBC
malloc by default, with the exception of Jemalloc being the default on Linux
Systems. This default is picked because Jemalloc has proven to have fewer
Fragmentation problems than libc malloc.


To force compiling against libc malloc, use:


% make MALLOC=LIBC


To compile against Jemalloc in Mac OS X systems, use:


% make Malloc=jemalloc


Verbose Build
-------------


Say is about allocator allocator, if have malloc this environment variable, will use this environment variable to build Redis.

And libc is not the default allocator, the default is Jemalloc, because Jemalloc is proven to have fewer fragmentation problems than libc.

But if you do not have jemalloc and only libc of course make error. So add such a parameter. Solutions

Make MALLOC=LIBC

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.