Hello all,
I've this rather perplexing problem with "configuring" and compiling software.
For many software (downloaded from source) the steps are:
cd into the untarred dir
./configure
make
make install
make clean (sometimes)
My problem is when I run the ./configure it all goes fine up till
checking for C-Compiler...
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.
I checked rpm -q gcc and it reports:
gcc-2.7.2.3-14
this is standard as found in Mandrake 5.3.
Then I tried a simple hello.c:
/*hello.c*/
#include <stdio.h>
void main(void){
printf ("Hello world!");
}
then I (saved it and) typed
gcc -o hello hello.c
(pretty standard, no?) and I got:
hello.c:1 stdio.h: No such file or directory
I tried this all in my home (user) directory. (ie. not /root)
What gives? Doesn't the gcc compiler come with standard libs?
How do I get gcc to work? Any assistance greatly appreciated.
TIA.
--
--------------------------------------
Kuraiken - Apprentice Codecaster
--------------------------------------