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
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.
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++
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With