gem: bundleでffiのインストールエラーが発生する場合の対策

2018.02.18 読了時間: 1分

Macでbundleを実行したところffiのインストールに失敗した。

Can't exec "aclocal": No such file or directory at
/usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory
...
An error occurred while installing ffi (1.9.21), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.9.21'` succeeds before bundling.

メッセージのautoreconf: failed to run aclocalが原因のようであり、これはautomakeをインストールすれば解決する。

$ brew install automake