Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages
Servers, nginx and Docker

./configure stops because config.guess, install-sh and other helper scripts are missing

Your error

configure: error: cannot find required auxiliary files: config.guess config.sub compile missing install-sh

Fix it fast

Most common cause, 1 of 3

The tree is a git checkout and the bootstrap step was never run

Run the project's own bootstrap script if it has one, since it may do extra steps.

Fix
./autogen.sh || autoreconf --install --force
./configure
Did this fix it?
Full steps for this cause: check, fix, verify

Short answer

configure: error: cannot find required auxiliary files: config.guess config.sub compile missing install-sh means the helper scripts configure checks for at startup are not in the source tree. A git checkout needs a bootstrap run of autoreconf --install, which copies them from Automake, so Automake must be installed. Then run ./configure again (Autoconf 2.71 to 2.73).

  • Applies to GNU Autoconf 2.71 (Ubuntu 24.04) to 2.73, GNU Automake 1.16 and later, Ubuntu 24.04 LTS
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Which cause do you have?

Check where configure.ac tells Autoconf to look for helper scripts, whether they are there, and whether the tools that create them are installed.

Run this first
grep -n 'AC_CONFIG_AUX_DIR\|AM_INIT_AUTOMAKE' configure.ac; ls build-aux 2>/dev/null; which autoreconf automake

Then find the line you see in this list and open its fix:

  1. 1The tree is a git checkout and the bootstrap step was never runconfigure.ac is present, often with an autogen.sh or bootstrap script, but none of the listed helper files exist anywhere in the tree
  2. 2Automake is not installed, so there is nothing to copy the scripts fromwhich automake prints nothing, or autoreconf stops before configure is regenerated
  3. 3AC_CONFIG_AUX_DIR names a folder the scripts are not inconfigure.ac contains AC_CONFIG_AUX_DIR([build-aux]) and the scripts sit in the top folder, or build-aux is in .gitignore

What does the error look like?

  • configure: error: cannot find required auxiliary files: config.guess config.sub compile missing install-sh

Cause 1 of 3

The tree is a git checkout and the bootstrap step was never run

You seeconfigure.ac is present, often with an autogen.sh or bootstrap script, but none of the listed helper files exist anywhere in the tree

Check

The cannot-find-required-auxiliary-files error is normal for a source tree that has not been bootstrapped. The Autoconf manual says configure looks for every helper script it needs as soon as it starts and exits with an error if one is missing. Run with --install, autoreconf adds missing scripts such as install-sh, config.sub and config.guess, and tarballs made with Automake's make dist already contain them.

Check
ls configure.ac autogen.sh bootstrap 2>/dev/null

Fix

Run the project's own bootstrap script if it has one, since it may do extra steps. Otherwise run autoreconf with --install, then configure.

Fix
./autogen.sh || autoreconf --install --force
./configure

Verify

configure gets past the aux-file check and goes on to the compiler tests.

Verify
./configure && make

Confirmed by gnu.org

Did this fix it?

Cause 2 of 3

Automake is not installed, so there is nothing to copy the scripts from

You seewhich automake prints nothing, or autoreconf stops before configure is regenerated

Check

autoreconf only copies the helper scripts; on Ubuntu the files compile, missing, install-sh, config.guess and config.sub ship inside the automake package under /usr/share/automake-1.16. With Autoconf alone, autoreconf --install cannot supply them.

Check
which automake || echo "automake is not installed"

Fix

Install both build tools from the distribution, then repeat the bootstrap.

Fix
sudo apt update
sudo apt install autoconf automake
autoreconf --install --force

Verify

The helper scripts now exist next to configure.ac or in the AC_CONFIG_AUX_DIR folder, and configure runs.

Verify
ls config.guess config.sub install-sh build-aux/ 2>/dev/null

Confirmed by packages.ubuntu.com

Did this fix it?

Cause 3 of 3

AC_CONFIG_AUX_DIR names a folder the scripts are not in

You seeconfigure.ac contains AC_CONFIG_AUX_DIR([build-aux]) and the scripts sit in the top folder, or build-aux is in .gitignore

Check

Here the scripts exist but in the wrong place. Per the Autoconf manual, configure searches the folder given to AC_CONFIG_AUX_DIR or, without that macro, the source folder and its two parent folders, and all scripts must sit together in one of them.

Check
grep -n AC_CONFIG_AUX_DIR configure.ac && ls -la build-aux

Fix

Let autoreconf fill the declared folder instead of copying files by hand; it creates the auxiliary directory when it does not exist.

Fix
autoreconf --install --force && ls build-aux

Verify

build-aux holds config.guess, config.sub, compile, missing and install-sh, and configure finishes.

Verify
./configure

Confirmed by gnu.org

Did this fix it?

How do I stop it coming back?

  • Document the bootstrap command (autoreconf --install or ./autogen.sh) at the top of the README for anyone building from git.
  • In CI, install autoconf and automake in the image and run the bootstrap step before ./configure.
  • Build from release tarballs on servers when possible; make dist includes the helper scripts.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.

Which stack is behind this page?

Next step

Want this handled for good?

I look after servers, apps and releases end to end. Tell me what keeps breaking.