• 升级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
    


    
    
    
                                        
    
  • 相关阅读:
    ECharts学习总结(四):echarts的实例方法
    ECharts学习总结(三):ECharts图表对象的初始化(init)详解以及注意事项
    ECharts学习总结(二):标签式单文件引入echarts的方法
    ECharts学习总结(一):ECharts的第一个图表
    Eclispe最常用的几个快捷键
    javascript数组去重的4个方法(转)
    数据库主键设计之思考(转)
    数据库插入数据返回当前自增主键ID值的方法
    Node.js制作图片下载爬虫的一般步骤
    Node.js mzitu图片批量下载爬虫1.00
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13350438.html
Copyright © 2020-2023  润新知