./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-shFix it fast
Most common cause, 1 of 3The 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.
./autogen.sh || autoreconf --install --force
./configureShort 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).
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.
grep -n 'AC_CONFIG_AUX_DIR\|AM_INIT_AUTOMAKE' configure.ac; ls build-aux 2>/dev/null; which autoreconf automakeThen find the line you see in this list and open its fix:
- 1The tree is a git checkout and the bootstrap step was never run
configure.ac is present, often with an autogen.sh or bootstrap script, but none of the listed helper files exist anywhere in the tree - 2Automake is not installed, so there is nothing to copy the scripts from
which automake prints nothing, or autoreconf stops before configure is regenerated - 3AC_CONFIG_AUX_DIR names a folder the scripts are not in
configure.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.
ls configure.ac autogen.sh bootstrap 2>/dev/nullFix
Run the project's own bootstrap script if it has one, since it may do extra steps. Otherwise run autoreconf with --install, then configure.
./autogen.sh || autoreconf --install --force
./configureVerify
configure gets past the aux-file check and goes on to the compiler tests.
./configure && makeConfirmed by gnu.org
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.
which automake || echo "automake is not installed"Fix
Install both build tools from the distribution, then repeat the bootstrap.
sudo apt update
sudo apt install autoconf automake
autoreconf --install --forceVerify
The helper scripts now exist next to configure.ac or in the AC_CONFIG_AUX_DIR folder, and configure runs.
ls config.guess config.sub install-sh build-aux/ 2>/dev/nullConfirmed by packages.ubuntu.com
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.
grep -n AC_CONFIG_AUX_DIR configure.ac && ls -la build-auxFix
Let autoreconf fill the declared folder instead of copying files by hand; it creates the auxiliary directory when it does not exist.
autoreconf --install --force && ls build-auxVerify
build-aux holds config.guess, config.sub, compile, missing and install-sh, and configure finishes.
./configureConfirmed by gnu.org
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.