Help installing gcc (6)

1 Name: 4n0n4ym0u5 h4xx0r : 2008-06-02 22:34 ID:d2IPm/zp

I'm using a Linux computer with the yum package manager. I saw I could install gcc using just the following command:

yum install gcc

So, I went ahead and did so. However, when I wrote a simple "Hello world" program and typed "gcc hello.c" into the command prompt, I got this message:

error: stdio.h: No such file or directory

...and then it goes on to complain about the implicit declaration of printf. I'm not sure what's wrong, although my guess is that yum for some reason forgot to fetch the libraries to go along with the compiler. Could someone give me some advice on how to fix this?

2 Name: 4n0n4ym0u5 h4xx0r : 2008-06-02 23:29 ID:Heaven

3 Name: 4n0n4ym0u5 h4xx0r : 2008-06-02 23:58 ID:d2IPm/zp

>>2

That is the programming board. I asked a question about software I'm having trouble with on the tech support board, which is where we are now.

4 Name: 4n0n4ym0u5 h4xx0r : 2008-06-03 01:48 ID:Heaven

yum install libc6-dev

5 Name: 4n0n4ym0u5 h4xx0r : 2008-06-03 02:46 ID:bmijNtdo

>>4

no package libc6-dev available

6 Name: 4n0n4ym0u5 h4xx0r : 2008-06-03 03:50 ID:Heaven

>>5
whoops, had a brainfart and assumed you were using that hot new variant of ubuntu that has yum instead of apt-get.

probably fedora, then?
try yum install glibc-dev

This thread has been closed. You cannot post in this thread any longer.