solution:jemalloc/jemalloc.h: No such file or directory

Reference

jemalloc

Error message

            zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory
        

Solution

First, we need to install jemalloc first, we can use the YUM command to install it directly. Then add parameters when make. The specific content can refer to the following example.

            yum -y install jemalloc
make MALLOC=jemalloc