在 mac 上使用自制软件安装 autoreconf 时出现错误“无法执行“aclocal””

Cor*_*mer 2 homebrew autoreconf

autoreconf -fi在我的 ARM mac 上完成后运行时brew install autoreconf,出现以下错误:

$ 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
Run Code Online (Sandbox Code Playgroud)

我该如何解决?

Cor*_*mer 9

问题是它aclocal没有与 一起安装autoreconf,请参见例如 this homebrew issues

单独brew安装就很容易解决aclocal

brew install automake
Run Code Online (Sandbox Code Playgroud)