美文网首页
Codis编译产生错误

Codis编译产生错误

作者: 年少时难免轻狂Ho | 来源:发表于2018-08-30 21:02 被阅读0次

    错误说明

    [ocetl@einvoice123 codis]$ make
    make -j4 -C extern/redis-3.2.11/
    make[1]: Entering directory `/home/ocetl/support/gopath/src/github.com/CodisLabs/codis/extern/redis-3.2.11'
    cd src && make all
    make[2]: Entering directory `/home/ocetl/support/gopath/src/github.com/CodisLabs/codis/extern/redis-3.2.11/src'
    
    Hint: It's a good idea to run 'make test' ;)
    
    make[2]: Leaving directory `/home/ocetl/support/gopath/src/github.com/CodisLabs/codis/extern/redis-3.2.11/src'
    make[1]: Leaving directory `/home/ocetl/support/gopath/src/github.com/CodisLabs/codis/extern/redis-3.2.11'
    version: line 3: git: command not found
    autoconf
    ./autogen.sh: line 5: autoconf: command not found
    Error 0 in autoconf
    make[2]: *** [config] Error 1
    make[1]: *** [build] Error 2
    make: *** [codis-deps] Error 2
    

    原因 缺少依赖autoconf automake libtool

    解决方法

    在线安装

    yum install autoconf automake libtool -y
    

    离线安装

    curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
    tar -xzf autoconf-2.69.tar.gz 
    cd autoconf-2.69
    ./configure && make && sudo make install
     
    curl -OL http://ftpmirror.gnu.org/automake/automake-1.14.tar.gz
    tar -xzf automake-1.14.tar.gz
    cd automake-1.14
    ./configure && make && sudo make install
     
    curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz
    tar -xzf libtool-2.4.2.tar.gz
    cd libtool-2.4.2
    ./configure && make && sudo make install
    

    如果没有安装权限也可以将该组件安装在当前用户下只需将安装命令改为

    ./configure  --prefix=/home/ocetl/support/autoconf
    

    注意在安装automake时会需要依赖autoconf,在安装autoconf时我们需要在环境变量中加上autoconf

    export PATH=/home/ocetl/support/autoconf/bin:$PATH
    

    然后分别执行

    make
    make install
    

    接下来安装另外两个包步骤与以上相同

    ./configure  --prefix=/home/ocetl/support/automake
    ./configure  --prefix=/home/ocetl/support/libtool
    

    最后的环境变量应该为

    export PATH=/home/ocetl/support/autoconf/bin:$PATH
    export PATH=/home/ocetl/support/automake/bin:$PATH
    export PATH=/home/ocetl/support/libtool/bin:$PATH
    

    相关文章

      网友评论

          本文标题:Codis编译产生错误

          本文链接:https://www.haomeiwen.com/subject/ctzdwftx.html