MacでAn error occurred while installing ffi (1.9.21)

状況

気まぐれにrails newしたところ、bundle installでエラー発生。

An error occurred while installing ffi (1.9.21), and Bundler cannot continue.

環境

対処

autoreconf: failed to run aclocal: No such file or directoryとのことなので、aclocalをインストール後、再度bundle installで解決しました。

$ brew instal automake
$ bundle install

参考

Can't exec "aclocal": No such file or directoryの対処法 - Qiita