zoukankan      html  css  js  c++  java
  • 升级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
    


    
    
    
                                        
    
  • 相关阅读:
    [转]JAVA程序执行顺序,你了解了吗:JAVA中执行顺序,JAVA中赋值顺序
    [转]浅谈Java中的equals和==
    [原创]java WEB学习笔记102:Spring学习---Spring Bean配置:bean配置方式(工厂方法(静态工厂方法 & 实例工厂方法)、FactoryBean) 全类名
    [原创]java WEB学习笔记101:Spring学习---Spring Bean配置:IOC容器中bean的声明周期,Bean 后置处理器
    C# 数组之List<T>
    C# 数组之ArrayList
    C# 数组之int[]
    reverse-XNUCA-babyfuscator
    reverse-daily(1)-audio_visual_receiver_code
    Python多线程和多进程谁更快?
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13350438.html
Copyright © 2011-2022 走看看