If you may get an error when you install packages  in your system like, Ubuntu, CentOS, Fedora, Debian and so on.

no acceptable c compiler found in $path linux,no acceptable c compiler found in $path cenots,no acceptable c compiler found
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/download/GeoIP-1.4.8':
configure: error: no acceptable C compiler found in $PATH

To verify gcc packages has installed in your system using rpm command,

#rpm -qa | grep gcc

If you could not find execute  yum command with multiple packages,

# yum install gcc glibc glibc-common gd gd-devel

Install GCC in different Operating System,

# sudo apt-get install build-essential

Centos / redhat
# yum groupinstall "Development tools"

Debian Base
# apt-get install build-essential