glu.h no such file or directory

Dear All,

I am new to this CUDA on Linux. When I tried to run the make command in /root/NVIDIA_CUDA_SDK/ directory I got the following error.

In file included from ./…/common/inc/paramgl.h:13,
from src/paramgl.cpp:8:
./…/common/inc/GL/glut.h:60:20: error: GL/glu.h: No such file or directory
make[1]: *** [obj/release/paramgl.cpp_o] Error 1
make: *** [lib/] Error 2

I googled and did not find any useful information. I have also installed the NVIDIA driver for OpenGL 3.0 (

I am currently using the NVIDIA GPU - GeForce 9800 GT card. I am able to run the bandwidthTest sample without any issues.

Please let me know what am I missing here.

Thanks in advance.

With Regards,
Srinivas G

You need to install the freeglut development package for your distro.

By the way, I am using the CENTOS 5.2 (which is equivalent to RHEL).

Any help would be greatly appreciated.

Thanks and Regards,

Srinivas G

Thanks tmurray.

I have downloaded the freeglut RPM (from and tried to install the RPM. However, it end up with the failed dependencies and the errors are as shown below.

warning: Header V3 DSA signature: NOKEY, key ID 66534c2b

error: Failed dependencies:

freeglut = is needed by

glib-devel is needed by

libGLU-devel is needed by

libXext-devel is needed by

So, I need to install the remaining packages. I will try to download and install them.

Thanks for your suggestion.

With Regards,

Srinivas G

I have downloaded the above 3 devel packages and tried to install them on my Linux (CENTOS) box. However, I end up with the same errors like each devel package showed some dependency errors. So, I guess, this is not a correct solution. If I download and install the other dependencies, then they may ask for other dependencies.

Could any one please help in resolving the issue at my end?

Thanks in advance.

With Regards,

Srinivas G


By typing the following two commands at the command prompt of the Linux box.

yum install freeglut

#yum install freeglut-devel

Thanks to all.

With Regards,

Srinivas G