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.
March 21st, 2006 at 1:36 am
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?
March 21st, 2006 at 9:13 pm
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.
March 31st, 2006 at 8:30 am
Rudi,
For ubuntu it is called libc6-dev.
apt-get install libc6-dev
July 11th, 2006 at 4:48 am
i run ubuntu and have libc6-dev installed… and still got the same error message :S
renzolut@gmail.com
July 23rd, 2006 at 11:31 pm
if you run a amd64 machine you also need libc6-dev-i368