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?

" 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
$ tar xvfvz autoconf-2.69.tar.gz
$ cd autoconf-2.69
$ ./configure
$ make
$ sudo make install

After installation, verify autoconf version:

$ autoconf --version

Download this article as ad-free PDF (made possible by your kind donation): 
Download PDF

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.

Support Xmodulo

Did you find this tutorial helpful? Then please be generous and support Xmodulo!

Leave a comment

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