Get the App
SLTechnology News&Howtos  ›  Database  › 

Zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: there is no such file or item

Shulou Source: shulou.com Published: 2022-06-01 14:52:19 10月31日 Update

Problem reporting error

analyze the reasons

This problem is about allocator, if there is MALLOC this environment variable, will use this environment variable to create Redis.

Also libc is not the default allocator, the default is jemalloc, because jemalloc has been shown to have fewer fragmentation problems than libc. But if you don't have jemalloc and you only have libc, of course make mistakes. So to specify the distributor, add parameters

solutions

[root@localhost redis-2.8.17]# make MALLOC=libc

Tags: Allocator allocation variable environment problem cause parameter only solution useful solution analysis file error Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Apple Docker Shulou Information Redmi