42

I need to install autotools. When I search on the Internet, there are various method given that use commands like ./configure, for example.

Please guide me on how to install autoconf, autotools, and related packages on my system. A step by step guide would be very helpful.

Kevin Bowen
  • 20,055
  • 57
  • 82
  • 84
abkds
  • 615

4 Answers4

45

To install autotools:

sudo apt-get install autotools-dev

To install autoconf

sudo apt-get install autoconf
Maythux
  • 87,123
18

Installing from repositories is always prefered unless you need the last version of autotools. In that case you will have to download it manually and install it manually. GNU autotools are three packages: Autoconf, Automake and Libtool. Here are the steps to manually install it:

cd /usr/local/src

Autoconf:

wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz 
tar xf autoconf*
cd autoconf-2.69
sh configure --prefix /usr/local
make install

Automake:

wget http://ftp.gnu.org/gnu/automake/automake-1.15.tar.gz
tar xf automake*
cd automake-1.15
sh configure --prefix /usr/local
make install

Libtool:

wget http://mirror.jre655.com/GNU/libtool/libtool-2.4.6.tar.gz
tar xf libtool*
cd libtool-2.4.6
sh configure --prefix /usr/local
make install 

Most importantly You don't need autotools installed to run ./configure, that it's a key feature of autotools. On the other hand if you are not given the configure script you will need autotools installed to generate it.

Note make install will internally call make. Thus, there is no need in this case of calling make. Normally, Autotools expect you to call make without sudo privileges and make install with sudo. In this case for simplicity I skipped this guideline. It's (or is it?) fairly reasonable to trust there is no malware in the autotools generated Makefile.

3

Installing autoconf is easy, type in the terminal:

sudo apt-get install autoconf
Stormvirux
  • 4,536
-1

After installing the packages autoconf, automake and libtool, what I did was reconfigure because the error persisted. Then after reconfiguring I was allowed to compile and install without errors.

$ sudo sh configure --prefix /usr/local
$ sudo make install

The justification of why to use /usr/local and not /usr/local/apache2 I leave you in the next publication

Braian Coronel
  • 403
  • 4
  • 7