CUDA nvcc compiler setup Ubuntu 12.04

andandandand picture andandandand · Dec 22, 2012 · Viewed 10.2k times · Source

I successfully installed the nvidia driver and toolkit for cuda 5 (but not the samples) on a 64 bit Ubuntu 12.04 box. The samples failed to install even though I previously ran

$ sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev

I can't seem to find nvcc. I ran

$ export LD_LIBRARY_PATH=/usr/local/cuda-5.0/lib:/usr/local/cuda-5.0/lib64:$LD_LIBRARY_PATH

nvcc -v reports that the compiler is not found:

nvcc -V No command 'nvcc' found, did you mean: Command 'nvlc' from package 'vlc-nox' (universe) nvcc: command not found

The getting started guide hasn't been of much help here: http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/index.html

What's going on here? Do I need to install the gpu computing sdk samples to get nvcc? :/

Answer

Arkapravo picture Arkapravo · Aug 13, 2013

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 ! :-)