In fedora
compile by this command
gcc filename -lGL -lGLU -lglut