Install xcode - it contains C compiler and many other developer tools for MacOSX system
xcode-select --install