• 乌班图安装redis问题


    ot@DESKTOP-5382063:/usr/local/redis/redis-3.0.4# make
    >
    cd src && make all
    make[1]: Entering directory '/usr/local/redis/redis-3.0.4/src'
        CC adlist.o
    In file included from adlist.c:34:0:
    zmalloc.h:50:10: fatal error: jemalloc/jemalloc.h: No such file or directory
     #include <jemalloc/jemalloc.h>
              ^~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    Makefile:197: recipe for target 'adlist.o' failed
    make[1]: *** [adlist.o] Error 1
    make[1]: Leaving directory '/usr/local/redis/redis-3.0.4/src'
    Makefile:6: recipe for target 'all' failed
    make: *** [all] Error 2
    

    以上10错误是进入redis安装目录出现编译失败的情况,有可能出现上次编译残留,make distclean命令进行清理,make&&make install命令进行编译安装

    ubandu

    初次安装redis会出现:安装redis时 提示执行make命令时提示 CC adlist.o /bin/sh: cc: 未找到命令。是因为redis是c语言言写的需要c的运行库需要安装。

    执行:sudo apt-get build-dep gcc或者apt install gcc命令

    安装成功后测试命令make test出现如下错误:make[1]: Entering directory '/usr/local/redis/redis-3.0.4/src' You need tcl 8.5 or newer in order to run the Redis test Makefile:211: recipe for target 'test' failed make[1]: *** [test] Error 1 make[1]: Leaving directory '/usr/local/redis/redis-3.0.4/src' Makefile:6: recipe for target 'test' failed make: *** [test] Error 2

    解决方案:wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz

    sudo tar xzvf tcl8.6.1-src.tar.gz -C /usr/local/

    cd /usr/local/tcl8.6.1/unix/

    sudo ./configure

    sudo make

    sudo make install

    一点点学习,一丝丝进步。不懈怠,才不会被时代淘汰
  • 相关阅读:
    android-----JNI学习 helloworld
    android布局之线性布局
    Hadoop最基本的wordcount(统计词频)
    有些错误就只因没有全局观
    Eclipse如何生成带有自定tag的Java Doc
    编程之美----高效率地安排见面会----贪心策略
    Servlet Filter
    【解决方法】VS 丢失模板
    你不是一个人在战斗——软件项目团队模型
    [Oracle] Data Pump 详细使用教程(4)- network_link
  • 原文地址:https://www.cnblogs.com/wangbiaohistory/p/12442852.html
Copyright © 2020-2023  润新知