zoukankan      html  css  js  c++  java
  • CentOS6.6 编译Redis报错:"Newer version of jemalloc required"

    一、前言

      不同系统同一个问题,可能解决方法不一样,也可能会遇到不同的问题,所以具体情况具体分析,我的系统是Centos6.6, 查看系统命令  cat /etc/issue

    二、安装redis后编译报错:Newer version of jemalloc required

    [root@server003-bmbic redis-5.0.3]# make
    cd src && make all
    make[1]: Entering directory `/usr/local/maple.yuan/redis-5.0.3/src'
        CC adlist.o
    In file included from adlist.c:34:
    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 `/usr/local/redis-5.0.3/src'
    make: *** [all] Error 2

    上面提示需要更新jemalloc,那么编译时可以指定编译库进行编译: make MALLOC=libc

    三、安装redis后编译报错:command not found make[1]

    [root@server003-bmbic redis-5.0.3]# make
    cd src && make all
    make[1]: Entering directory `/root/redis-4.0.11
    /src‘ CC adlist.o /bin/sh: cc: command not found make[1]: *** [adlist.o] Error 127 make[1]: Leaving directory `/root/redis-2.8.17/src‘ make: *** [all] Error 2

    说明没有安装gcc或者make, 则可以使用命令安装:yum install -y gcc g++ gcc-c++ make, 然后再进行编译。

    四、总结

    以上是我执行过程中遇到的问题,记录总结下。以上问题可能还有另外的解决方式,如有大神使用并解决过,可以共享下。

  • 相关阅读:
    接口性能测试方案
    如何选择自动化测试框架
    一维和二维前缀和
    高精度 加减乘除
    归并排序 快速排序
    链表
    二分查找
    表达式求值
    c++ const问题小记
    虚继承总结
  • 原文地址:https://www.cnblogs.com/yuanfy008/p/10241258.html
Copyright © 2011-2022 走看看