• 升级automake和autoconf


    <pre name="code" class="html">zjtest7-redis:/root/soft/json-c-json-c-0.12-20140410# ./configure CC="gcc -m64" --prefix=/usr --libdir=/usr/lib64 && make && make install
    
     cd . && /bin/sh /root/soft/json-c-json-c-0.12-20140410/missing automake-1.14 --gnu
    /root/soft/json-c-json-c-0.12-20140410/missing: line 81: automake-1.14: command not found
    WARNING: 'automake-1.14' is missing on your system.
             You should only need it if you modified 'Makefile.am' or
             'configure.ac' or m4 files included by 'configure.ac'.
             The 'automake' program is part of the GNU Automake package:
             <http://www.gnu.org/software/automake>
             It also requires GNU Autoconf, GNU m4 and Perl in order to run:
             <http://www.gnu.org/software/autoconf>
             <http://www.gnu.org/software/m4/>
             <http://www.perl.org/>
    make: *** [Makefile.in] Error 1
    
    zjtest7-redis:/root/soft/json-c-json-c-0.12-20140410# automake
    automake       automake-1.11
    
    发现版本不匹配:
    
    
    
    
    
    查看autoconf 的版本:
    
    zjtest7-redis:/root/soft/json-c-json-c-0.12-20140410# autoconf -V
    autoconf (GNU Autoconf) 2.63
    Copyright (C) 2008 Free Software Foundation, Inc.
    
    
    zjtest7-redis:/root/automake-1.14.1#  ./configure --prefix=/usr/
    checking whether make supports nested variables... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether ln -s works... yes
    checking for perl... /usr/bin/perl
    checking for tex... no
    checking for yacc... yacc
    checking for lex... lex
    checking whether autoconf is installed... yes
    checking whether autoconf works... yes
    checking whether autoconf is recent enough... no
    configure: error: Autoconf 2.65 or better is required.
    
    
    安装新版本的automake-1.14.1 需要更新Autoconf 版本:
    
    
    
    
    
    
    
    查询当前版本
    [root@BobServerStation twemproxy]# rpm -qf /usr/bin/autoconf
    autoconf-2.63-5.1.el6.noarch
    
    zjtest7-redis:/root/autoconf-2.69# autoconf -V
    autoconf (GNU Autoconf) 2.63
    Copyright (C) 2008 Free Software Foundation, Inc.
    
    
    卸载当前版本
    [root@BobServerStation twemproxy]# rpm -e --nodeps autoconf-2.63
    
    zjtest7-frontend:/usr# /usr/bin/autoconf -V
    autoconf (GNU Autoconf) 2.68
    Copyright (C) 2010 Free Software Foundation, Inc.
    
    安装最新版本
    [root@BobServerStation twemproxy]# wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
    [root@BobServerStation twemproxy]# tar zxvf autoconf-2.69.tar.gz
    [root@BobServerStation twemproxy]# cd autoconf-2.69
    [root@BobServerStation twemproxy]# ./configure --prefix=/usr/
    [root@BobServerStation twemproxy]# make && make install
    
    安装最新版本的automake:
    zjtest7-redis:/root/autoconf-2.69# autoconf -V
    autoconf (GNU Autoconf) 2.69
    
    
    
    继续安装automake:
    
    zjtest7-redis:/root/automake-1.14.1# automake
    automake       automake-1.11  automake-1.14  
    
    zjtest7-redis:/root/automake-1.14.1# rpm -e automake-1.11.1-4.el6.noarch
    error: Failed dependencies:
    	automake is needed by (installed) intltool-0.41.0-1.1.el6.noarch
    	automake >= 1.4 is needed by (installed) libtool-2.2.6-15.5.el6.x86_64
    zjtest7-redis:/root/automake-1.14.1# rpm -e --nodeps automake-1.11.1-4.el6.noarch
    zjtest7-redis:/root/automake-1.14.1# rpm -qa | grep automake
    
    
    zjtest7-redis:/root/soft/json-c-json-c-0.12-20140410# autoconf -V
    autoconf (GNU Autoconf) 2.69
    
    zjtest7-redis:/root/soft/json-c-json-c-0.12-20140410# automake-1.14 --version
    Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/${ <-- HERE ([^ 	=:+{}]+)}/ at /usr/bin/automake-1.14 line 3930.
    automake (GNU automake) 1.14.1
    
    
    删除之前:
    zjtest7-redis:/root/soft/json-c-json-c-0.12-20140410# rm -rf json-c-json-c-0.12-20140410/
    
    zjtest7-redis:/root/soft/json-c-json-c-0.12-20140410#  ./configure CC="gcc -m64" --prefix=/usr --libdir=/usr/lib64 && make && make install
    


    
    
    
       
    
    
  • 相关阅读:
    微信 ios端config配置失败 android端正常
    vscode离线安装插件
    win7中vscode会黑屏或者终端空白,无法输入
    vue中使用svg图片
    a.download下载文件 ---跨域问题
    background 背景图片 --css3
    box-shadow
    兄弟伪类
    canvas画时钟
    轮播图--使用原生js的轮播图
  • 原文地址:https://www.cnblogs.com/zhaoyangjian724/p/6199432.html
Copyright © 2020-2023  润新知