Use below command to fix the issue of “/usr/bin/ld: cannot find -lglut”

yum install  glut-devel

once done you can carry ahead the compilation :)