linux 查看automake 及 autoconf版本及升级命令

来源:互联网 发布:门户网站整站源码 php 编辑:程序博客网 时间:2024/05/20 10:11

linux 查看automake 及 autoconf版本及升级命令

我在RHEL5.8上编译xlsLib时,提示automake  、 aclocal 、 autoconf 版本较低,需要升级。automake  、 aclocal 要升级到至少1.13,autoconf 要升级到至少2.65。下面给出autoconf 的升级方法,automake的升级方法完全一样。aclocal是automake的组成部分,升级了automake后aclocal也跟着升级了。

升级autofonf的步骤:

查询autoconf当前版本的命令

[root@192 xxx]# rpm -qf /usr/bin/autoconf
autoconf-2.59-12

卸载当前autoconf 版本

[root@192 xxx]# rpm -e --nodeps autoconf-2.59

下载安装最新autoconf 2.69版本

下载地址 http://ftp.gnu.org/gnu/autoconf/

选择 autoconf-2.69.tar.gz 下载,或者其他你需要的版本。

安装:

[root@192 xxx]# tar -zxvf autoconf-2.69.tar.gz 
[root@192 xxx]# cd autoconf-2.69
[root@192 autoconf-2.69]# ./configure --prefix=/usr/
[root@192 autoconf-2.69]# make
[root@192 autoconf-2.69]# make install

查看当前autoconf版本

 /usr/bin/autoconf -V 或 rpm -qf /usr/bin/autoconf

[root@192 autoconf-2.69]#  /usr/bin/autoconf -V
autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David J. MacKenzie and Akim Demaille.
[root@192 autoconf-2.69]#



automake下载地址

automake下载地址

http://ftp.gnu.org/gnu/automake/

原创粉丝点击