Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gcc is unable to create an executable file when installing FFmpeg

Tags:

gcc

ffmpeg

I'm trying to install FFmpeg directly from the source and I keep getting this error:

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
[email protected] 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.

Can anyone help? Also, yum install ffmpeg doesn't work.

like image 506
keithp Avatar asked Jan 29 '13 17:01

keithp


1 Answers

Apparently, with the limited information I have, you need to at least install gcc to compile ffmpeg. See How to Compile FFmpeg on CentOS for instructions. It is designed for CentOS, but should work for RHEL and Fedora.

Alternatively you can simply use a static build of ffmpeg instead of compiling, but it doesn't have the advantage of customization that compiling provides.

Note that Stack Overflow is limited to programming questions and discussions.

like image 120
llogan Avatar answered Nov 01 '22 16:11

llogan