error while compiling ffmpeg: gcc is unable to create an executable filegcc can't link to pthread?Autotools...

PhD: When to quit and move on?

How come a desk dictionary be abridged?

A positive integer functional equation

What is it called when the tritone is added to a minor scale?

Should I increase my 401(k) contributions, or increase my mortgage payments

Does the "divide by 4 rule" give the upper bound marginal effect?

What is the shape of the upper boundary of water hitting a screen?

Can you take the Dodge action while prone?

Did Stalin kill all Soviet officers involved in the Winter War?

Is there a way to change the aspect ratio of a DNG file?

What's the big deal about the Nazgûl losing their horses?

How do I check that users don't write down their passwords?

How frequently do Russian people still refer to others by their patronymic (отчество)?

Why do Martians have to wear space helmets?

How can I create a dashed line that slowly changes into a solid line in Illustrator?

Taking advantage when the HR forgets to communicate the rules

/api/sitecore is not working in CD server

Taking my Ph.D. advisor out for dinner after graduation

Why do most airliners have underwing engines, while business jets have rear-mounted engines?

Why did Super-VGA offer the 5:4 1280*1024 resolution?

Is conquering your neighbors to fight a greater enemy a valid strategy?

Was I wrongfully denied boarding for having a Schengen visa issued from the second country on my itinerary?

Was the 45.9°C temperature in France in June 2019 the highest ever recorded in France?

What is the maximum amount of diamond in one Minecraft game?



error while compiling ffmpeg: gcc is unable to create an executable file


gcc can't link to pthread?Autotools does not detect my architecture correctly. How to handle?Is there any pattern to specify target triples in GCC?gcc installation on CentOS 6.6: configure issueGentoo failed to emerge GParted 0.25.0How to build GTK2 on the Mac OS X EI Captain?Installing s3fuse on Ubuntu ( bitnami ec2)error while configuring FFmpeg in CentOS: Segmentation fault & gcc is unable to create an executable fileLocal machine libraries when cross compiling./configure cannot find GCC but whereis is able to?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







5















When I run the ./configure command in ffmpeg source directory I get 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 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.


in config.log:



check_ld cc
check_cc
BEGIN /tmp/ffconf.xECiIX7z.c
1 int main(void){ return 0; }
END /tmp/ffconf.xECiIX7z.c
gcc -c -o /tmp/ffconf.xsCaoMWN.o /tmp/ffconf.xECiIX7z.c
gcc -o /tmp/ffconf.ApzYq7NQ /tmp/ffconf.xsCaoMWN.o
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x12): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x19): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
C compiler test failed.


What's wrong? What should I do?










share|improve this question




















  • 1





    Take a hint from "include the config.log".

    – Stéphane Chazelas
    Sep 3 '12 at 20:09











  • Please see the edited post

    – Omid
    Sep 3 '12 at 20:21











  • What operating system is this? Is this the GCC that came with the OS? Are you running a 32-bit or 64-bit version of the OS? Did you pass any arguments to ./configure?

    – Gilles
    Sep 3 '12 at 23:12











  • how do you make? did you ./configure ? if true What's your distro? uname -a

    – PersianGulf
    Sep 3 '12 at 23:18











  • @Gilles: Ubuntu 64-bit. I don't pass any arguments to ./configure

    – Omid
    Sep 4 '12 at 8:08


















5















When I run the ./configure command in ffmpeg source directory I get 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 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.


in config.log:



check_ld cc
check_cc
BEGIN /tmp/ffconf.xECiIX7z.c
1 int main(void){ return 0; }
END /tmp/ffconf.xECiIX7z.c
gcc -c -o /tmp/ffconf.xsCaoMWN.o /tmp/ffconf.xECiIX7z.c
gcc -o /tmp/ffconf.ApzYq7NQ /tmp/ffconf.xsCaoMWN.o
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x12): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x19): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
C compiler test failed.


What's wrong? What should I do?










share|improve this question




















  • 1





    Take a hint from "include the config.log".

    – Stéphane Chazelas
    Sep 3 '12 at 20:09











  • Please see the edited post

    – Omid
    Sep 3 '12 at 20:21











  • What operating system is this? Is this the GCC that came with the OS? Are you running a 32-bit or 64-bit version of the OS? Did you pass any arguments to ./configure?

    – Gilles
    Sep 3 '12 at 23:12











  • how do you make? did you ./configure ? if true What's your distro? uname -a

    – PersianGulf
    Sep 3 '12 at 23:18











  • @Gilles: Ubuntu 64-bit. I don't pass any arguments to ./configure

    – Omid
    Sep 4 '12 at 8:08














5












5








5


1






When I run the ./configure command in ffmpeg source directory I get 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 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.


in config.log:



check_ld cc
check_cc
BEGIN /tmp/ffconf.xECiIX7z.c
1 int main(void){ return 0; }
END /tmp/ffconf.xECiIX7z.c
gcc -c -o /tmp/ffconf.xsCaoMWN.o /tmp/ffconf.xECiIX7z.c
gcc -o /tmp/ffconf.ApzYq7NQ /tmp/ffconf.xsCaoMWN.o
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x12): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x19): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
C compiler test failed.


What's wrong? What should I do?










share|improve this question
















When I run the ./configure command in ffmpeg source directory I get 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 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.


in config.log:



check_ld cc
check_cc
BEGIN /tmp/ffconf.xECiIX7z.c
1 int main(void){ return 0; }
END /tmp/ffconf.xECiIX7z.c
gcc -c -o /tmp/ffconf.xsCaoMWN.o /tmp/ffconf.xECiIX7z.c
gcc -o /tmp/ffconf.ApzYq7NQ /tmp/ffconf.xsCaoMWN.o
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x12): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x19): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
C compiler test failed.


What's wrong? What should I do?







ubuntu gcc ffmpeg






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 4 '12 at 8:14







Omid

















asked Sep 3 '12 at 20:03









OmidOmid

8887 gold badges20 silver badges37 bronze badges




8887 gold badges20 silver badges37 bronze badges








  • 1





    Take a hint from "include the config.log".

    – Stéphane Chazelas
    Sep 3 '12 at 20:09











  • Please see the edited post

    – Omid
    Sep 3 '12 at 20:21











  • What operating system is this? Is this the GCC that came with the OS? Are you running a 32-bit or 64-bit version of the OS? Did you pass any arguments to ./configure?

    – Gilles
    Sep 3 '12 at 23:12











  • how do you make? did you ./configure ? if true What's your distro? uname -a

    – PersianGulf
    Sep 3 '12 at 23:18











  • @Gilles: Ubuntu 64-bit. I don't pass any arguments to ./configure

    – Omid
    Sep 4 '12 at 8:08














  • 1





    Take a hint from "include the config.log".

    – Stéphane Chazelas
    Sep 3 '12 at 20:09











  • Please see the edited post

    – Omid
    Sep 3 '12 at 20:21











  • What operating system is this? Is this the GCC that came with the OS? Are you running a 32-bit or 64-bit version of the OS? Did you pass any arguments to ./configure?

    – Gilles
    Sep 3 '12 at 23:12











  • how do you make? did you ./configure ? if true What's your distro? uname -a

    – PersianGulf
    Sep 3 '12 at 23:18











  • @Gilles: Ubuntu 64-bit. I don't pass any arguments to ./configure

    – Omid
    Sep 4 '12 at 8:08








1




1





Take a hint from "include the config.log".

– Stéphane Chazelas
Sep 3 '12 at 20:09





Take a hint from "include the config.log".

– Stéphane Chazelas
Sep 3 '12 at 20:09













Please see the edited post

– Omid
Sep 3 '12 at 20:21





Please see the edited post

– Omid
Sep 3 '12 at 20:21













What operating system is this? Is this the GCC that came with the OS? Are you running a 32-bit or 64-bit version of the OS? Did you pass any arguments to ./configure?

– Gilles
Sep 3 '12 at 23:12





What operating system is this? Is this the GCC that came with the OS? Are you running a 32-bit or 64-bit version of the OS? Did you pass any arguments to ./configure?

– Gilles
Sep 3 '12 at 23:12













how do you make? did you ./configure ? if true What's your distro? uname -a

– PersianGulf
Sep 3 '12 at 23:18





how do you make? did you ./configure ? if true What's your distro? uname -a

– PersianGulf
Sep 3 '12 at 23:18













@Gilles: Ubuntu 64-bit. I don't pass any arguments to ./configure

– Omid
Sep 4 '12 at 8:08





@Gilles: Ubuntu 64-bit. I don't pass any arguments to ./configure

– Omid
Sep 4 '12 at 8:08










4 Answers
4






active

oldest

votes


















2





+50









Your libc installation is incomplete or broken somehow. You should say what OS you use... the easiest fix is probably to reinstall the packages that comprise the libc.



Or if you are really interested in finding out exactly which part of it is broken, here are some tips:



On a typical glibc installation, the references to __libc_csu_init and __libc_csu_fini will be resolved by finding them in /usr/lib/libc_nonshared.a which you can check as follows:



$ nm /usr/lib/libc_nonshared.a | egrep '__libc_csu_(init|fini)'
0000000000000000 T __libc_csu_fini
0000000000000010 T __libc_csu_init


The use of /usr/lib/libc_nonshared.a will be triggered by linking to /usr/lib/libc.so (which is a text file, not an actual shared object). You can check that like this:



There may be some other stuff in it too. You can check that with



$ less /usr/lib/libc.so
[...]
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )


/usr/lib/libc.so will be used by the linker to satisfy the -lc requirement, which you can check like this:



$ ld --verbose -lc
[... lots of stuff ...]
opened script file /usr/lib64/libc.so
attempt to open /lib/libc.so.6 succeeded
/lib/libc.so.6
attempt to open /usr/lib/libc_nonshared.a succeeded





share|improve this answer
























  • How do I reinstall glibc? apt-get install(remove) glibc says there is no package named glibc

    – Omid
    Sep 4 '12 at 8:13











  • apt-get install --reinstall libc6

    – Alan Curry
    Sep 5 '12 at 20:20











  • I'm getting same error in windows 8, Any help?

    – Kishore Jethava
    Dec 21 '16 at 13:20



















5














That means you don't have the necessary software to compile C code.



Run this:



apt-get install build-essential


You also want the build dependencies for ffmpeg:



apt-get build-dep ffmpeg


Then try again.






share|improve this answer
























  • Unfortunately still getting the same error

    – Omid
    Sep 4 '12 at 10:49



















0














If you may get an error while installing FFMPEG on centOS 6.5,



create repo : /etc/yum.repos.d/dag.repo



# vi  /etc/yum.repos.d/dag.repo


add below lines into it,



[dag]
name=DAG RPM Repository
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1


GPG key for DAG, run the below command,



# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt


Now update and install ffmpeg,



# yum update
# yum install ffmpeg ffmpeg-devel ffmpeg-libpostproc





share|improve this answer































    0














    I know this is an old question, but I had a problem with similar symptoms recently while compiling ffmpeg on my workstation. What caused the problem was passing several flags to enable the opus and vpx codecs, which appears to influence the flags passed into gcc. In my case these libraries weren't present yet and the ./configure was detecting that gcc didn't produce an executable with those flags. In this case the error gcc is unable too create an executable was insufficient.






    share|improve this answer








    New contributor



    phillip voyle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "106"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f47057%2ferror-while-compiling-ffmpeg-gcc-is-unable-to-create-an-executable-file%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2





      +50









      Your libc installation is incomplete or broken somehow. You should say what OS you use... the easiest fix is probably to reinstall the packages that comprise the libc.



      Or if you are really interested in finding out exactly which part of it is broken, here are some tips:



      On a typical glibc installation, the references to __libc_csu_init and __libc_csu_fini will be resolved by finding them in /usr/lib/libc_nonshared.a which you can check as follows:



      $ nm /usr/lib/libc_nonshared.a | egrep '__libc_csu_(init|fini)'
      0000000000000000 T __libc_csu_fini
      0000000000000010 T __libc_csu_init


      The use of /usr/lib/libc_nonshared.a will be triggered by linking to /usr/lib/libc.so (which is a text file, not an actual shared object). You can check that like this:



      There may be some other stuff in it too. You can check that with



      $ less /usr/lib/libc.so
      [...]
      GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )


      /usr/lib/libc.so will be used by the linker to satisfy the -lc requirement, which you can check like this:



      $ ld --verbose -lc
      [... lots of stuff ...]
      opened script file /usr/lib64/libc.so
      attempt to open /lib/libc.so.6 succeeded
      /lib/libc.so.6
      attempt to open /usr/lib/libc_nonshared.a succeeded





      share|improve this answer
























      • How do I reinstall glibc? apt-get install(remove) glibc says there is no package named glibc

        – Omid
        Sep 4 '12 at 8:13











      • apt-get install --reinstall libc6

        – Alan Curry
        Sep 5 '12 at 20:20











      • I'm getting same error in windows 8, Any help?

        – Kishore Jethava
        Dec 21 '16 at 13:20
















      2





      +50









      Your libc installation is incomplete or broken somehow. You should say what OS you use... the easiest fix is probably to reinstall the packages that comprise the libc.



      Or if you are really interested in finding out exactly which part of it is broken, here are some tips:



      On a typical glibc installation, the references to __libc_csu_init and __libc_csu_fini will be resolved by finding them in /usr/lib/libc_nonshared.a which you can check as follows:



      $ nm /usr/lib/libc_nonshared.a | egrep '__libc_csu_(init|fini)'
      0000000000000000 T __libc_csu_fini
      0000000000000010 T __libc_csu_init


      The use of /usr/lib/libc_nonshared.a will be triggered by linking to /usr/lib/libc.so (which is a text file, not an actual shared object). You can check that like this:



      There may be some other stuff in it too. You can check that with



      $ less /usr/lib/libc.so
      [...]
      GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )


      /usr/lib/libc.so will be used by the linker to satisfy the -lc requirement, which you can check like this:



      $ ld --verbose -lc
      [... lots of stuff ...]
      opened script file /usr/lib64/libc.so
      attempt to open /lib/libc.so.6 succeeded
      /lib/libc.so.6
      attempt to open /usr/lib/libc_nonshared.a succeeded





      share|improve this answer
























      • How do I reinstall glibc? apt-get install(remove) glibc says there is no package named glibc

        – Omid
        Sep 4 '12 at 8:13











      • apt-get install --reinstall libc6

        – Alan Curry
        Sep 5 '12 at 20:20











      • I'm getting same error in windows 8, Any help?

        – Kishore Jethava
        Dec 21 '16 at 13:20














      2





      +50







      2





      +50



      2




      +50





      Your libc installation is incomplete or broken somehow. You should say what OS you use... the easiest fix is probably to reinstall the packages that comprise the libc.



      Or if you are really interested in finding out exactly which part of it is broken, here are some tips:



      On a typical glibc installation, the references to __libc_csu_init and __libc_csu_fini will be resolved by finding them in /usr/lib/libc_nonshared.a which you can check as follows:



      $ nm /usr/lib/libc_nonshared.a | egrep '__libc_csu_(init|fini)'
      0000000000000000 T __libc_csu_fini
      0000000000000010 T __libc_csu_init


      The use of /usr/lib/libc_nonshared.a will be triggered by linking to /usr/lib/libc.so (which is a text file, not an actual shared object). You can check that like this:



      There may be some other stuff in it too. You can check that with



      $ less /usr/lib/libc.so
      [...]
      GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )


      /usr/lib/libc.so will be used by the linker to satisfy the -lc requirement, which you can check like this:



      $ ld --verbose -lc
      [... lots of stuff ...]
      opened script file /usr/lib64/libc.so
      attempt to open /lib/libc.so.6 succeeded
      /lib/libc.so.6
      attempt to open /usr/lib/libc_nonshared.a succeeded





      share|improve this answer













      Your libc installation is incomplete or broken somehow. You should say what OS you use... the easiest fix is probably to reinstall the packages that comprise the libc.



      Or if you are really interested in finding out exactly which part of it is broken, here are some tips:



      On a typical glibc installation, the references to __libc_csu_init and __libc_csu_fini will be resolved by finding them in /usr/lib/libc_nonshared.a which you can check as follows:



      $ nm /usr/lib/libc_nonshared.a | egrep '__libc_csu_(init|fini)'
      0000000000000000 T __libc_csu_fini
      0000000000000010 T __libc_csu_init


      The use of /usr/lib/libc_nonshared.a will be triggered by linking to /usr/lib/libc.so (which is a text file, not an actual shared object). You can check that like this:



      There may be some other stuff in it too. You can check that with



      $ less /usr/lib/libc.so
      [...]
      GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )


      /usr/lib/libc.so will be used by the linker to satisfy the -lc requirement, which you can check like this:



      $ ld --verbose -lc
      [... lots of stuff ...]
      opened script file /usr/lib64/libc.so
      attempt to open /lib/libc.so.6 succeeded
      /lib/libc.so.6
      attempt to open /usr/lib/libc_nonshared.a succeeded






      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Sep 3 '12 at 20:54









      Alan CurryAlan Curry

      1,83410 silver badges9 bronze badges




      1,83410 silver badges9 bronze badges













      • How do I reinstall glibc? apt-get install(remove) glibc says there is no package named glibc

        – Omid
        Sep 4 '12 at 8:13











      • apt-get install --reinstall libc6

        – Alan Curry
        Sep 5 '12 at 20:20











      • I'm getting same error in windows 8, Any help?

        – Kishore Jethava
        Dec 21 '16 at 13:20



















      • How do I reinstall glibc? apt-get install(remove) glibc says there is no package named glibc

        – Omid
        Sep 4 '12 at 8:13











      • apt-get install --reinstall libc6

        – Alan Curry
        Sep 5 '12 at 20:20











      • I'm getting same error in windows 8, Any help?

        – Kishore Jethava
        Dec 21 '16 at 13:20

















      How do I reinstall glibc? apt-get install(remove) glibc says there is no package named glibc

      – Omid
      Sep 4 '12 at 8:13





      How do I reinstall glibc? apt-get install(remove) glibc says there is no package named glibc

      – Omid
      Sep 4 '12 at 8:13













      apt-get install --reinstall libc6

      – Alan Curry
      Sep 5 '12 at 20:20





      apt-get install --reinstall libc6

      – Alan Curry
      Sep 5 '12 at 20:20













      I'm getting same error in windows 8, Any help?

      – Kishore Jethava
      Dec 21 '16 at 13:20





      I'm getting same error in windows 8, Any help?

      – Kishore Jethava
      Dec 21 '16 at 13:20













      5














      That means you don't have the necessary software to compile C code.



      Run this:



      apt-get install build-essential


      You also want the build dependencies for ffmpeg:



      apt-get build-dep ffmpeg


      Then try again.






      share|improve this answer
























      • Unfortunately still getting the same error

        – Omid
        Sep 4 '12 at 10:49
















      5














      That means you don't have the necessary software to compile C code.



      Run this:



      apt-get install build-essential


      You also want the build dependencies for ffmpeg:



      apt-get build-dep ffmpeg


      Then try again.






      share|improve this answer
























      • Unfortunately still getting the same error

        – Omid
        Sep 4 '12 at 10:49














      5












      5








      5







      That means you don't have the necessary software to compile C code.



      Run this:



      apt-get install build-essential


      You also want the build dependencies for ffmpeg:



      apt-get build-dep ffmpeg


      Then try again.






      share|improve this answer













      That means you don't have the necessary software to compile C code.



      Run this:



      apt-get install build-essential


      You also want the build dependencies for ffmpeg:



      apt-get build-dep ffmpeg


      Then try again.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Sep 4 '12 at 9:45









      bahamatbahamat

      25.7k1 gold badge54 silver badges91 bronze badges




      25.7k1 gold badge54 silver badges91 bronze badges













      • Unfortunately still getting the same error

        – Omid
        Sep 4 '12 at 10:49



















      • Unfortunately still getting the same error

        – Omid
        Sep 4 '12 at 10:49

















      Unfortunately still getting the same error

      – Omid
      Sep 4 '12 at 10:49





      Unfortunately still getting the same error

      – Omid
      Sep 4 '12 at 10:49











      0














      If you may get an error while installing FFMPEG on centOS 6.5,



      create repo : /etc/yum.repos.d/dag.repo



      # vi  /etc/yum.repos.d/dag.repo


      add below lines into it,



      [dag]
      name=DAG RPM Repository
      baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
      gpgcheck=1
      enabled=1


      GPG key for DAG, run the below command,



      # rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt


      Now update and install ffmpeg,



      # yum update
      # yum install ffmpeg ffmpeg-devel ffmpeg-libpostproc





      share|improve this answer




























        0














        If you may get an error while installing FFMPEG on centOS 6.5,



        create repo : /etc/yum.repos.d/dag.repo



        # vi  /etc/yum.repos.d/dag.repo


        add below lines into it,



        [dag]
        name=DAG RPM Repository
        baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
        gpgcheck=1
        enabled=1


        GPG key for DAG, run the below command,



        # rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt


        Now update and install ffmpeg,



        # yum update
        # yum install ffmpeg ffmpeg-devel ffmpeg-libpostproc





        share|improve this answer


























          0












          0








          0







          If you may get an error while installing FFMPEG on centOS 6.5,



          create repo : /etc/yum.repos.d/dag.repo



          # vi  /etc/yum.repos.d/dag.repo


          add below lines into it,



          [dag]
          name=DAG RPM Repository
          baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
          gpgcheck=1
          enabled=1


          GPG key for DAG, run the below command,



          # rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt


          Now update and install ffmpeg,



          # yum update
          # yum install ffmpeg ffmpeg-devel ffmpeg-libpostproc





          share|improve this answer













          If you may get an error while installing FFMPEG on centOS 6.5,



          create repo : /etc/yum.repos.d/dag.repo



          # vi  /etc/yum.repos.d/dag.repo


          add below lines into it,



          [dag]
          name=DAG RPM Repository
          baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
          gpgcheck=1
          enabled=1


          GPG key for DAG, run the below command,



          # rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt


          Now update and install ffmpeg,



          # yum update
          # yum install ffmpeg ffmpeg-devel ffmpeg-libpostproc






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 21 '15 at 10:16









          lakshmikandanlakshmikandan

          1415 bronze badges




          1415 bronze badges























              0














              I know this is an old question, but I had a problem with similar symptoms recently while compiling ffmpeg on my workstation. What caused the problem was passing several flags to enable the opus and vpx codecs, which appears to influence the flags passed into gcc. In my case these libraries weren't present yet and the ./configure was detecting that gcc didn't produce an executable with those flags. In this case the error gcc is unable too create an executable was insufficient.






              share|improve this answer








              New contributor



              phillip voyle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.
























                0














                I know this is an old question, but I had a problem with similar symptoms recently while compiling ffmpeg on my workstation. What caused the problem was passing several flags to enable the opus and vpx codecs, which appears to influence the flags passed into gcc. In my case these libraries weren't present yet and the ./configure was detecting that gcc didn't produce an executable with those flags. In this case the error gcc is unable too create an executable was insufficient.






                share|improve this answer








                New contributor



                phillip voyle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






















                  0












                  0








                  0







                  I know this is an old question, but I had a problem with similar symptoms recently while compiling ffmpeg on my workstation. What caused the problem was passing several flags to enable the opus and vpx codecs, which appears to influence the flags passed into gcc. In my case these libraries weren't present yet and the ./configure was detecting that gcc didn't produce an executable with those flags. In this case the error gcc is unable too create an executable was insufficient.






                  share|improve this answer








                  New contributor



                  phillip voyle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  I know this is an old question, but I had a problem with similar symptoms recently while compiling ffmpeg on my workstation. What caused the problem was passing several flags to enable the opus and vpx codecs, which appears to influence the flags passed into gcc. In my case these libraries weren't present yet and the ./configure was detecting that gcc didn't produce an executable with those flags. In this case the error gcc is unable too create an executable was insufficient.







                  share|improve this answer








                  New contributor



                  phillip voyle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.








                  share|improve this answer



                  share|improve this answer






                  New contributor



                  phillip voyle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.








                  answered 1 hour ago









                  phillip voylephillip voyle

                  1011 bronze badge




                  1011 bronze badge




                  New contributor



                  phillip voyle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.




                  New contributor




                  phillip voyle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.
































                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f47057%2ferror-while-compiling-ffmpeg-gcc-is-unable-to-create-an-executable-file%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                      Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                      Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...