cannot find -lglut when installing the SDK for CUDA 4.0 in RHEL 6.0

I am getting the error message:
/usr/bin/ld: cannot find -lglut
when compiling the SDK from CUDA 4.0 in RHEL 6.0.

Which packages do I have to install in RHEL 6.0 to fix the above problem?

Before is too late, change distro, RH is very well known to be conservative and you will

end up to install lot of packages by hand (download,compile,install) if you are “edge”

developing. Having say that try the package libglut-devel.

K.

The package is not available—see below for the error messages.

Any another suggestions for what I should try to download?

-> yum install libglut-devel

Loaded plugins: refresh-packagekit, rhnplugin

Setting up Install Process

No package libglut-devel available.

Error: Nothing to do

->

->

-> yum install libglut-devel.x86_64

Loaded plugins: refresh-packagekit, rhnplugin

Setting up Install Process

No package libglut-devel.x86_64 available.

Error: Nothing to do

->

-> yum install libglut-devel.i686

Loaded plugins: refresh-packagekit, rhnplugin

Setting up Install Process

No package libglut-devel.i686 available.

Error: Nothing to do

->

-> yum install libglut-devel.el6

Loaded plugins: refresh-packagekit, rhnplugin

Setting up Install Process

No package libglut-devel.el6 available.

Error: Nothing to do

->

-> yum install libglut-devel.el6.x86_64

Loaded plugins: refresh-packagekit, rhnplugin

Setting up Install Process

No package libglut-devel.el6.x86_64 available.

Error: Nothing to do

try freeglut and freeglut-devel

None of them works either by itself or in combination with

x86_64 or i686

Any other ideas?

Why didn’t NVIDIA document this properly!!! This is so frustrating!

They did. For Redhat 5. It has been in the Linux release notes since at least CUDA 1.1. But Redhat 6 isn’t yet supported, so you probably shouldn’t complain too loudly.

Centos 6 repos show these packages. Centos 6 is a RHEL 6 clone, so they should be in the official Redhat repo too. Given they are in Extras in Centos, you might need to do something to activate the equivalent RedHat repo in yum. I presume there are support channels from Redhat available. Why not ask them?

Well, the cudatoolkit_4.0 is available for RHEL 6.0, so it is supported.

Yes, and the CUDA 4.0 release you are using is a beta release. There will be official RHEL6 support when CUDA 4.0 is actually released. If you raise a bug report, they might even know to fix the problem you are having and put it into the documentation for the CUDA 4.0 release. This is what beta testing is about.

So, the solution is:

  1. select the RHEL Workstation Optional channel in RHEL6 (glut is in that channel).

  2. yum install freeglut

  3. followed the instructions in the SDk release Notes for RHEL 4
    on how to create a symbolic link to the freeglut package that was installed

And it worked!