You are here: Home / Devel Env / Autotools / Install Autotools

Install Autotools

Downloading and installing GNU software for ABINIT (Autotools ...)

Introduction

While most ABINIT developers have access to a GNU/Linux-compatible system, some do not. For them, we provide here the software packages they will need to fully participate to the ongoing development efforts, as well as an installer script.

There are two kinds of distributions, depending on the age of your computer. Please install only one.

Note: if the installer script fails complaining that "bsd-compatible-install-*.sh" does not exist, just rename this file by removing the ".sh" extension.

Downloading files for old computers (minimal install)

If you are developing on an old computer (.i.e more than 4-year old), please download the following 7 files and put them all in a temporary directory. Just right-click on each of the links below and select "Save link as..." in your browser's menu. Pointers to the home pages of the GNU packages are provided for the curious.

  1. GNU Autotools installer script
  2. BSD-compatible install script
  3. GNU Texinfo 4.8 (Home page)
  4. GNU M4 1.4 (Home page)
  5. GNU Autoconf 2.59 (Home page)
  6. GNU Automake 1.9.6 (Home page)
  7. GNU Libtool 1.5.22 (Home page)

Note: this combination of versions has been tested on the oldest and least standard machine we could find. Though we cannot guarantee that this package set will work in all situations, we are quite confident that it will perform well in most cases.

Downloading files for modern computers (recommended install)

If you are developing on a modern computer (.i.e less than 4-year old), you will likely be able to benefit from the various bugfixes released publicly over the last years and the many improvements within Fortran support coming along with the development of the GFortran compiler. Please download the following 2 scripts and put them all in a temporary directory. Just right-click on each of the links below and select "Save link as..." in your browser's menu.

  1. GNU Autotools installer script
  2. BSD-compatible install script

The packages which are needed by abinit are the following GNU utilities: Pointers to the home pages of the GNU packages are just provided for the curious.

  1. m4 home page
  2. Autoconf home page
  3. Automake home page
  4. Libtool home page

Note: this combination of versions is known to perform very nicely on modern Linux-based computers. However it has not been tested as extensively as the old distribution. It may not work depending essentially on how strictly your system sticks to the Unix standards.

Installing the files

In the following we will suppose that you want to install the Autotools into a $HOME/gnu directory, and that you have a modern computer. First, go to the temporary directory where you have just downloaded all the previous files and type:

    /bin/sh gnu-autotools-installer-new $HOME/gnu

The script will download (via wget), build, and install all required packages in the right order. You will need around 150 Mb of free disk space during the build, which may take up to 10 minutes on some machines. The installed packages themselves will only require 25 Mb of disk space. Depending on your configuration, you might get some instructions from the installer script. Please follow them carefully.

Once you are done with the installer, and if everything went fine, you may safely remove the temporary directory. However, you will be able to use these valuable tools only if your PATH environment variable contains $HOME/gnu/bin before all other paths. To be sure that this is always the case, please add the following line in the config file of your login shell:

    PATH="${HOME}/gnu/bin:${PATH}"; export PATH

for a Bourne-like shell, and

    setenv PATH "${HOME}/gnu/bin:${PATH}"

for a C-like shell.

You will then be able to use the GNU Autotools from your next login on. They will serve you well for a while.

Conclusion

Have fun with the Autotools!

Problems should be reported to Yann Pouillon.