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

安装FFmpeg时,gcc无法创建可执行文件,gcc,ffmpeg,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 m

我正试图直接从源代码安装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不起作用。

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

或者,您可以简单地使用,而不是编译,但它没有编译提供的定制优势


请注意,堆栈溢出仅限于编程问题和讨论。

config.log的尾部将非常有用。/configure:line 640:gcc:command not found C编译器测试失败。那是什么?