CUDA nvcc compiler setup Ubuntu 12.04

雨燕双飞 提交于 2019-12-01 05:53:12

Consider installing CUDA 5.5 in Ubuntu 12.04. The 5.5 release has special leverages to install it as a debian package. See the following links,

https://developer.nvidia.com/content/cudacasts-episode-5-install-cuda-55-linux-package-manager

https://developer.nvidia.com/cuda-downloads

It is truly much easier than all that you have tried till now ! personal experience ! :-)

Failing to install samples is a common problem as outlines in https://sn0v.wordpress.com/2012/12/07/installing-cuda-5-on-ubuntu-12-04/#comment-869

The solution is to find "libglut.so" and create a soft-link to it under /usr/lib. Then re-run the cuda*.run and choose to install only the samples.

sudo find /usr -name libglut\*

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

sudo ./cuda*.run #when prompted only install samples. ie do not install drivers and toolkit.

works for me on ubuntu 12.04 hope it works for you too

I met the problem during the installation, but I found the sudo ln -s /usr/lib/x86_64-linux-gnu/libglut.so.3 /usr/lib/libglut.so is useless. My solution is to install freeglut3 first:

`sudo apt-get install freeglut3`  

then use:

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

After this, CUDA sample is successfully installed.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!