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

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

程序员学园

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值