Please help me to run opengl programs in linux


i tried to complile a opengl program  in redhat linux 9 using the


gcc -L/usr/X11R6/lib -I/usr/include/GL -lXmu -lXi -lGLU -lGL -lglut
program1.c -o program1

it is giving an error message saying that it can’t find the glut.h in
usr/include/GL/ .I manually checked and i cant find the file in GL

i tried to install the pacakage glut-devel-3.7-12.i386.rpm but it
crashes linux and makes the situation even worse.

what package should i need to install in order to run opengl programs?

please help me.

thank you


There are no “official” pre-compiled binaries for Linux.

Get the source files from:

After untarring, simply follow the build instructions (they are in the README in the linus subdirectory).

Good luck and post with any problems…

You may want to try freeglut instead of the regular old glut. A google search should give you all the information you need.

  • SFRuckus

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.