Reputation: 2095
I'm trying to install cuda 5 samples:
Driver: Not Selected
Toolkit: Not Selected
Samples: Installation Failed. Missing required libraries.
But I got this error:
Missing required library libglut.so
But:
frederico@zeus:~/Downloads$ sudo find / -name libglut.so*
/usr/lib/libglut.so
/usr/lib32/nvidia-current/libglut.so
Where nvidia installer is looking for? maybe /usr/lib64? There is no /usr/lib64 on Ubuntu 12.10:
frederico@zeus:~/Downloads$ ls /usr
bin games include lib lib32 local sbin share src
frederico@zeus:~/Downloads$ uname -a
Linux zeus 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Upvotes: 14
Views: 16722
Reputation: 41
I got CUDA-5.0 to work very fine on Ubuntu 12.10. It built the samples. I was also able to compile OpenCV-2.4.4 with Cuda support, than ffmpeg with libopencv support speeding the editing and encoding of Videos up to 8x.
I've done this:
sudo apt-get install linux-headers-3.5.0-26 freeglut3-dev mpich-dev gcc-4.6 g++-4.6
chmod +x (Downloadpath)/*run
than sudo lightdm stop
than cd (Downloadpath) than sudo ./NV*run
than sudo restart
sudo ln -s /usr/bin/gcc-4.6 /opt/cuda-5.0/bin/gcc
echo '/opt/cuda-5.0/lib64' > /etc/ld.so.conf.d/nvidia-cuda.conf && echo '/opt/cuda-5.0/lib' >> /etc/ld.so.conf.d/nvidia-cuda.conf
than do: sudo ldconfig
sudo ln -s /opt/cuda-5.0/include/CL /usr/include/CL
and sudo ln -s /opt/cuda-5.0/include/CL /usr/include/OpenCL
sudo ln -s /usr/bin/gcc-4.6 /usr/bin/gcc
- sudo ln -s /usr/bin/g++-4.6 /usr/bin/g++
- sudo ln -s /usr/bin/g++-4.6 /usr/bin/c++
Upvotes: 4
Reputation: 246
I am also running Ubuntu 12.10 and I found this library in folder /usr/lib/x86_64-linux-gnu/
after installing freeglut3 package.
I also make a softlink and I have been able to install CUDA 5.0 examples:
ln -s /usr/lib/x86_64-linux-gnu/libglut.so.3 /usr/lib/libglut.so
I have not checked if the samples can be compiled yet.
Upvotes: 23
Reputation: 5430
Maybe you need to create a softlink from lib64 to lib using:
ln -s /usr/lib /usr/lib64
Upvotes: 0
Reputation: 2060
CUDA 5 is not yet supported on Ubuntu 12. For reference see CUDA 5.0 Toolkit Release Notes And Errata
** Distributions Currently Supported
Distribution 32 64 Kernel GCC GLIBC
----------------- -- -- --------------------- ---------- -------------
Fedora 16 X X 3.1.0-7.fc16 4.6.2 2.14.90
ICC Compiler 12.1 X
OpenSUSE 12.1 X 3.1.0-1.2-desktop 4.6.2 2.14.1
Red Hat RHEL 6.x X 2.6.32-131.0.15.el6 4.4.5 2.12
Red Hat RHEL 5.5+ X 2.6.18-238.el5 4.1.2 2.5
SUSE SLES 11 SP2 X 3.0.13-0.27-pae 4.3.4 2.11.3
SUSE SLES 11.1 X X 2.6.32.12-0.7-pae 4.3.4 2.11.1
Ubuntu 11.10 X X 3.0.0-19-generic-pae 4.6.1 2.13
Ubuntu 10.04 X X 2.6.35-23-generic 4.4.5 2.12.1
Upvotes: 2