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.

EDIT - my current compiler

should be a problem with gcc installation or its absence therein.