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

2.3k Views Asked by At

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?

1

There are 1 best solutions below

0
On BEST ANSWER

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