安装FFmpeg时,gcc无法创建可执行文件

时间:2013-01-29 17:53:03

标签: gcc ffmpeg

我正在尝试直接从源代码安装FFmpeg并且我一直收到此错误:

gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.

有人可以帮忙吗?另外,yum install ffmpeg不起作用。

1 个答案:

答案 0 :(得分:3)

显然,由于我的信息有限,您至少需要安装gcc来编译ffmpeg。有关说明,请参阅How to Compile FFmpeg on CentOS。它是为CentOS设计的,但应该适用于RHEL和Fedora。

或者,您只需使用static build of ffmpeg而不是编译,但它没有编译提供的自定义优势。

请注意,Stack Overflow仅限于编程问题和讨论。