如何在 CentOS 上升级 autoconf如何在 CentOS 上升级 autoconf如何在 CentOS 上升级 autoconf如何在 CentOS 上升级 autoconf
  • 文章
  • 正则表达式
    • 工具
  • 登录
找到的结果: {phrase} (显示: {results_count} 共: {results_count_total})
显示: {results_count} 共: {results_count_total}

加载更多搜索结果...

搜索范围
模糊匹配
搜索标题
搜索内容
发表 admin at 2025年2月28日
类别
  • 未分类
标签

如何在 CentOS 上升级 autoconf

Question: I am trying to use autoconf to generate a configuration file on CentOS. However, it fails with the following error.

configure.ac:1: error: Autoconf version 2.69 or higher is required
Apparently, the default autoconf on CentOS is not meet the requirement. How can I upgrade autoconf on CentOS?

autoconf是一个开发工具,用于自动生成与平台相关的configure脚本,用于在UNIX/Linux平台上编译和安装软件。 autoconf 通常与 automake 和 libtool 一起使用,以最大程度地减少为目标架构构建和打包软件的工作量。

要升级 CentOS 上的默认 autoconf,您可以从其源代码构建最新的 autoconf。以下是从源代码构建和安装 autoconf 的说明。


$ wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
$ tar xvfvz autoconf-2.69.tar.gz
$ cd autoconf-2.69
$ ./configure
$ make
$ sudo make install

安装后,验证 autoconf 版本:


$ autoconf --version
©2015-2025 艾丽卡 support@alaica.com