First make sure you have installed build-essential packages. Those packets ensure you to have a basic compile environment.
Then:
sudo apt-get install libglut3-dev
Ubuntu 8.04 don’t have man page for opengl. but you can find one here
http://emergent.unpythonic.net/01157053957
download the man page and put it proper directory (/usr/share/man/man3)
Currently, I don’t find any glut man pages available for ubuntu. You can read the online version. If you really need man pages for glut. You can get one from some rpm of gult. Take man page out of rpm and put them in man page directory.
here is the rpm you need
glut-devel-3.7-12 RPM for i386
Install alien command first.This command can convert rpm to deb, then
sudo alien glut-devel-3.7-12.i386.rpm
extract the new deb packet(not install) find the manpages in man3 directory. Copy all of them to /usr/share/man/man3 directory.
You installed opengl library, head files and manpages. It’s time to start your journey in opengl programming now!