The gcc compiler is not in your $PATH.It means either you dont have gcc installed or it's not in your $PATH variable.
To install gcc use this: (run as root)
yum groupinstall "Development Tools"
apt-get install build-essential
you need to run
yum install gcc
for Ubuntu / Debian :
# sudo apt-get install build-essential
#rpm -qa | grep gcc# yum install gcc glibc glibc-common gd gd-devel -y
# yum groupinstall "Development tools" -y
More details refer the link