Compiling error

I recently downloaded the 1.2.13 of asterisk, extracted it and went to make, but it’s giving me an error with the compiler.

When I make after I extracted the tarball I get this error:

cd editline && unset CFLAGS LIBS && test -f config.h || CFLAGS="-O6" ./configureloading cache ./config.cache
checking for gcc… gcc
checking whether the C compiler (gcc -O6 ) works… no
configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** [editline/libedit.a] Error 1

editline/config.log looks like this:

configure:534: checking for gcc
configure:647: checking whether the C compiler (gcc -O6 ) works
configure:663: gcc -o conftest -O6 conftest.c 1>&5
./configure: line 662: gcc: command not found
configure: failed program was:

#line 658 “configure”
#include “confdefs.h”

I’m new to the linux environment and could use any help regarding this problem.
Thanks.

EDIT - my current compiler
compat-libstdc+±33-3.2.3-47.3
compat-libstdc+±296-2.96-132.7.2
libstdc+±3.4.6-3.1
compat-gcc-32-c+±3.2.3-47.3

should be a problem with gcc installation or its absence therein.
gcc.gnu.org/ml/gcc-help/1999-q3n/msg00299.html