How to upgrade autoconf on CentOS

Question: I am trying to use autoconf to generate a configuration file on CentOS. However, it fails with the following error. Apparently, the default autoconf on CentOS is not meet the requirement. How can I upgrade autoconf on CentOS?

"configure.ac:1: error: Autoconf version 2.69 or higher is required"

autoconf is a development tool used to generate automatically a platform-dependent configure script for compiling and installing software on UNIX/Linux platforms. autoconf is typically used with automake and libtool to minimize the efforts to build and package software for a target architecture.

To upgrade the default autoconf on CentOS, you can build the latest autoconf from its source. Here is the instruction on building and installing autoconf from its source.

$ 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

After installation, verify autoconf version:

$ autoconf --version

Subscribe to Ask Xmodulo

Do you want to receive Linux related questions & answers published at Ask Xmodulo? Enter your email address below, and we will deliver our Linux Q&A straight to your email box, for free. Delivery powered by Google Feedburner.

Leave a comment

Your email address will not be published. Required fields are marked *