FFMPEG系列三:linux下编译ffmpeg报错gcc is unable to create an executable file C compiler test failed.

linux编译ffmpeg过程报错gcc is unable to create an executable file C compiler test failed.网上找了一圈,关于这个问题的答案少之又少。具体报错信息如下:

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 "ffbuild/config.log" produced by configure as this will help
solve the problem.
[csy@root@instance-m4tjyg0q ffmpeg-4.0]# 

原因:linux系统没有安装gcc编译器

yum install gcc
终端输入上述命令安装即可

推荐阅读:
* FFMPEG系列一:Mac下FFMPEG编译安装配置及使用例子
* FFMPEG系列二:linux下下载编译安装ffmpeg(超详细附采坑完整版)
* FFMPEG系列三:linux下编译ffmpeg报错gcc is unable to create an executable file C compiler test failed.
* FFMPEG系列四:linux下ffmpeg -bash: ffmpeg: command not found及环境变量设置
* FFMPEG系列五:FFMPEG常见错误
* FFMPEG系列六:linux ffmpeg Unknown encoder ‘libx264’解决办法:安装第三方x264和mp3lame编码器
* FFMPEG系列七:ffmepg将gif转视频并指定编码格式/帧率/码率

转载请注明:本文转载自在线助手|在线工具博客,原文链接:http://www.it399.com/blog/ffmpeg/201807011602

已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页