checking for C compiler default output file name… configure: error: C compiler cannot create executables

So, … you have gcc and try to compile some stuff - but ./configure answers:

checking for C compiler default output file name… configure: error: C compiler cannot create executables.

Solution:

Just install glibc-devel

that’s all.

5 Responses to “checking for C compiler default output file name… configure: error: C compiler cannot create executables”

  1. Rudi Says:

    Hi

    I tried to follow your recommendations, on a newly installed Ubuntu 5.10 server, but got this message:

    root@Gimbli:/usr/local/src/ruby-1.8.3# apt-get install glibc-dev
    Reading package lists… Done
    Building dependency tree… Done
    E: Couldn’t find package glibc-dev

    Installing gcc, returned this:

    root@Gimbli:~# apt-get install gcc
    Reading package lists… Done
    Building dependency tree… Done
    The following extra packages will be installed:
    binutils gcc-4.0
    Suggested packages:
    binutils-doc make manpages-dev autoconf automake1.9 libtool flex bison
    gcc-doc gcc-4.0-doc gcc-4.0-locales libc6-dev-amd64 lib64gcc1
    Recommended packages:
    libc6-dev libc-dev libmudflap0-dev
    The following NEW packages will be installed:
    binutils gcc gcc-4.0
    0 upgraded, 3 newly installed, 0 to remove and 68 not upgraded.
    Need to get 0B/1973kB of archives.
    After unpacking 7811kB of additional disk space will be used.
    Do you want to continue [Y/n]? Y

    Can you please assist?

  2. Administrator Says:

    I use PLD Linux and installin glibc-devel worked for me. It seems that it could have different name in Ubuntu, maybe.

    My glibc-devel is based on http://www.gnu.org/software/libc/ - maybe try to find some libc libraries.

  3. nunya Says:

    Rudi,

    For ubuntu it is called libc6-dev.

    apt-get install libc6-dev

  4. renzo Says:

    i run ubuntu and have libc6-dev installed… and still got the same error message :S

    renzolut@gmail.com

  5. honk Says:

    if you run a amd64 machine you also need libc6-dev-i368