For Debian based linux OS install glut/openGL by running the following command:
sudo apt-get install freeglut3 freeglut3-dev
Install an additional package for newer (v >= 11.10) version:
For Redhat or OS like Redhat:
sudo apt-get install binutils-gold
Install some additional libraries for Shaders. Libraries are: freeglut3 freeglut3-dev libglew1.6 libglew1.6-dev libglu1-mesa libglu1-mesa-dev glew-utils libfreeimage-dev Install them in Ubuntu using the following commnd:
yum install freeglut-devel
sudo apt-get install freeglut3-dev libglu1-mesa libglu1-mesa-dev glew-utils libglew1.6-dev libfreeimage-dev