Setting CC to a working compiler

Okay here goes,

My server did not have a compiler installed on it so i installed a precompiled version of gcc, it seems to work, when i type gcc i get this:

[root@sls-ce6p2 root]# gcc
gcc: no input files

and before when it wasnt installed it just said command not found etc.

But.
While trying to ./configure binutils I get this error:

[root@sls-ce6p2 binutils-2.14]# ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking build system type... i686-pc-linux-gnuoldld
gcc: installation problem, cannot exec `as': No such file or directory
*** The command 'gcc -o conftest -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
[root@sls-ce6p2 binutils-2.14]#

So finally my question is, how do I set the environment variable CC to a working compiler? Or did I just not install gcc correct or something..

Thanks,
ChokEy

 

 

 

 

Top