nvcc install,input nvcc -V ,command not found
run command:nvcc -V,there is a error that command not found .
input two sentence:
export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
then ,you can input nvcc -V in terminal and get the version of nvcc,it is the same with cuda.
rislab@rislab-pc:~$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Wed_Oct_23_19:24:38_PDT_2019
Cuda compilation tools, release 10.2, V10.2.89