zoukankan      html  css  js  c++  java
  • redis安装常见错误

    1、CentOS5.7默认没有安装gcc,这会导致我们无法make成功。使用yum安装:

      yum -y install gcc

     

    2、make时报如下错误:

      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 `/data0/src/redis-2.6.2/src'

      make: *** [all] Error 2

      原因是jemalloc重载了Linux下的ANSIC的malloc和free函数。解决办法:make时添加参数。

      make MALLOC=libc

     

    3、make之后,会出现一句提示

      Hint: To run 'make test' is a good idea ;)

      但是不测试,通常是可以使用的。若我们运行make test ,会有如下提示

      [devnote@devnote src]$ make test

      You need tcl 8.5 or newer in order to run the Redis test

      make: ***[test] Error_1

      解决办法是用yum安装tcl8.5(或去tcl的官方网站http://www.tcl.tk/下载8.5版本,并参考官网介绍进行安装)

      yum install tcl

     

  • 相关阅读:
    科技小论文
    一线架构—细化架构
    python20.04.10
    软件架构总结
    信息领域热词分析
    架构即未来阅读笔记二
    构架即未来阅读笔记一
    科技小论文之软件质量
    Pre-architecture的需求
    软件质量
  • 原文地址:https://www.cnblogs.com/yangxuyang/p/11429128.html
Copyright © 2011-2022 走看看