通过 Homebrew 安装 ffmpeg 选项失败

通过 Homebrew 安装 ffmpeg 选项失败

尝试使用 homebrew 在 osx 10.8.5 上安装 ffmpeg。如果我执行默认安装而不安装可选组件,安装会很顺利。但如果我想添加可选组件,安装会失败并显示以下消息:

> s-se-sto-ed01:~ admin$ brew install ffmpeg --with-fdk-aac
==> Installing ffmpeg dependency: fdk-aac
==> Downloading //downloads.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-0.1.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/fdk-aac-0.1.2.tar.gz
==> autoreconf -fvi
/usr/local/share/aclocal/ogg.m4:8:   run info Automake 'Extending aclocal'
/usr/local/share/aclocal/ogg.m4:8:   or see http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
autom4te: need GNU m4 1.4 or later: /usr/bin/m4
aclocal: error: echo failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

我尝试使用以下命令重新安装 autoconf:

brew rm autoconf && brew install autoconf

我找遍了所有地方,但到目前为止,我还没有找到任何能帮我解决问题的东西。我对自制啤酒还很陌生。

答案1

原来我没有m4安装。要安装,m4您需要安装 Xcode CLI 工具。打开 Xcode » 偏好设置 » 下载并安装 CLI 工具 — 瞧!

我不确定,但我认为您也可以使用 Homebrew 安装它brew install m4

相关内容