Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing CUDA 5.0 RC samples

I tried to install the full CUDA 5.0 package but I got the following error:

Driver:   Not Selected
Toolkit:  Not Selected
Samples:  Installation Failed. Missing required libraries.

So, in the /tmp/cuda_install_2340.log I've got:

Missing required library libglut.so

But I have installed it before, because I do:

facundo@gpgpu:~$ locate libglut
/usr/lib/x86_64-linux-gnu/libglut.a
/usr/lib/x86_64-linux-gnu/libglut.so
/usr/lib/x86_64-linux-gnu/libglut.so.3
/usr/lib/x86_64-linux-gnu/libglut.so.3.9.0

So, What is the problem? I am on Ubuntu 12.04

like image 310
FacundoGFlores Avatar asked Oct 14 '12 14:10

FacundoGFlores


People also ask

Where are cuda samples installed?

Running the Compiled Examples. CUDA Samples are located in https://github.com/nvidia/cuda-samples. To use the samples, clone the project, build the samples, and run them using the instructions on the Github page.


2 Answers

I'm on Ubuntu 12.04, I fixed it by the following:

sudo ln -s /usr/lib/x86_64-linux-gnu/libglut.so /usr/lib/libglut.so

So the problem was ubuntu are installing libglut library in a different path for x64 architectures, so it can be fixed making a symbolic link to /usr/lib/.

like image 117
FacundoGFlores Avatar answered Oct 26 '22 04:10

FacundoGFlores


On CentOS 5.6 x64 , Kernel: 2.6.18-308.24.1.el5

1. yum install freeglut

2. ln -s /usr/lib/libglut.so.3 /usr/lib/libglut.so

then i also install CUDA 5.0 Sample successfully.

Thanks this post.

like image 35
Kris Chang Avatar answered Oct 26 '22 04:10

Kris Chang