Make darknet show "/usr/local/cuda-10.2/bin/: Permission denied**". Solved

Hi,
I’m a new guy for darknet on jetson nano.
When I make the darknet they will show below error even using sudo make.
Error:
/usr/local/cuda-10.2/bin/ -gencode arch=compute_53,code=[sm_53,compute_53] -Iinclude/ -I3rdparty/stb/include -DOPENCV pkg-config --cflags opencv4 2> /dev/null || pkg-config --cflags opencv -DGPU -I/usr/local/cuda/include/ -DCUDNN --compiler-options “-Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -fopenmp -DGPU -DCUDNN -I/usr/local/cudnn/include -fPIC” -c ./src/convolutional_kernels.cu -o obj/convolutional_kernels.o
/bin/sh: 1: /usr/local/cuda-10.2/bin/: Permission denied
Makefile:185: recipe for target ‘obj/convolutional_kernels.o’ failed
make: *** [obj/convolutional_kernels.o] Error 126
make: *** Waiting for unfinished jobs…

Here is my conditions:
JetPack 4.4.1
OpenCV 4.0.0 compiled CUDA: Yes
CUDA 10.2.89
cuDNN 8.0.0.180
Makefile
GPU=1
CUDNN=1
CUDNN_HALF=0
OPENCV=1
AVX=0
OPENMP=1
ARCH= -gencode arch=compute_53,code=[sm_53,compute_53]
NVCC=/usr/local/cuda-10.2/bin/

Any suggestion are welcome, thanks for your advice.

Hi,

Could you update the below configure and try it again ?

NVCC=/usr/local/cuda-10.2/bin/nvcc

Thanks.

Hi AastaLLL

It is worked!

Thank you so much~