Hi
So I’m running ubuntu 16.04 with GTX 960M Driver 367 installed beforehand.
I installed CUDA using the .run installer and said no to the driver installation prompt.
My problem is that when i enter
nvcc -V
into the terminal, it shows that the program is not installed.
I have already followed the steps explained in the nvidia guide.
Please Help.
Did you set your PATH environment variable?
Indeed. As specified in the installation method guide by NVIDIA.
$ export PATH=/usr/local/cuda-7.0/bin:$PATH
$ export LD_LIBRARY_PATH=/usr/local/cuda-7.0/lib64:$LD_LIBRARY_PATH
Perhaps the path should specify cuda-8.0 rather than cuda-7.0 as follows:
$ export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}
$ export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
I’ll check for that again.
So i installed CUDA again.
What is happening is that i after i run these commands
$ export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}
$ export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
sudo .bashrc
Then the system detects nvcc
However as soon as close the terminal windows, and type nvcc -V in a new terminal, it again shows not installed
It seems your .bash_profile is not sourcing .bashrc
- If it doesn’t already exist, create a file called .bash_profile in your home folder using your favorite text editor
- Add the following lines to .bash_profile:
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi - Close and reopen console
More details here: .bash_profile vs .bashrc | Josh Staiger ☙