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