Problem Installing GLUT !

I try to install GLUT in Linux, but i have this message errors …

gcc: …/…/…/…/lib/ No such file or directory
gcc: …/…/…/…/lib/ No such file or directory
make[3]: *** [rtsmap] Error 1
make[3]: Leaving directory /src/glut-3.7/progs/spheremap/glsmap' make[2]: *** [all] Error 2 make[2]: Leaving directory/src/glut-3.7/progs/spheremap’
make[1]: *** [all] Error 2
make[1]: Leaving directory `/src/glut-3.7/progs’
make: *** [all] Error 2

Whitch its the problem.

First check your Makefile to use absolute path instead of relative path:

-L/usr/lib/ in the link section of the makefile instead of -L…/…/…/…/lib/

because if you change your build dir, the path is wrong.

Have you run ldconfig as root? check if there is /usr/X11R6/lib in /etc/ before.

I have had the same pb !

The best solution is to install the last version of Mesa (3.2.1) because it installs itself the glut library !

Besides, you need Mesa to “make” GLUT (see your error messages).