macoshomebrewautoreconf

Error 'Can't exec "aclocal"' with homebrew installed autoreconf on mac


When running autoreconf -fi after having done brew install autoreconf on my ARM mac, I get the following error:

$ autoreconf -fi                     
Can't exec "aclocal": No such file or directory at /opt/homebrew/Cellar/autoconf/2.71/share/autoconf/Autom4te/FileUtils.pm line 274.
autoreconf: error: aclocal failed with exit status: 2

How do I fix this?


Solution

  • The problem is that aclocal wasn't installed together with autoreconf, see e.g. this homebrew issue.

    It's easy to solve by brew installing aclocal separately:

    brew install automake