# cudnn install error

**URL:** <https://forums.developer.nvidia.com/t/cudnn-install-error/74001>\
**Category:** cuDNN\
**Created:** [May 1, 2019, 9:35am UTC](https://forums.developer.nvidia.com/t/cudnn-install-error/74001 "2019-05-01T09:35:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![1104430777](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@1104430777](https://forums.developer.nvidia.com/u/1104430777)\
**Post date:** [May 1, 2019, 9:35am UTC](https://forums.developer.nvidia.com/t/cudnn-install-error/74001/1 "2019-05-01T09:35:43Z")

</div>

```auto
li@li-System-Product-Name:~/cudnn_samples_v7/mnistCUDNN$ sudo make clean && make

rm -rf *o
rm -rf mnistCUDNN
Linking agains cublasLt = false
CUDA VERSION: 10000
TARGET ARCH: x86_64
HOST_ARCH: x86_64
TARGET OS: linux
SMS: 30 35 50 53 60 61 62 70 72 75
/bin/sh: 1: cannot create test.c: Permission denied
/bin/sh: 1: cannot create test.c: Permission denied
g++: error: test.c: No such file or directory
g++: warning: ‘-x c’ after last input file has no effect
g++: fatal error: no input files
compilation terminated.
>>> WARNING - FreeImage is not set up correctly. Please ensure FreeImage is set up correctly. <<<
[@] /usr/local/cuda/bin/nvcc -ccbin g++ -I/usr/local/cuda/include -IFreeImage/include -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_72,code=sm_72 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=compute_75 -o fp16_dev.o -c fp16_dev.cu
[@] g++ -I/usr/local/cuda/include -IFreeImage/include -o fp16_emu.o -c fp16_emu.cpp
[@] g++ -I/usr/local/cuda/include -IFreeImage/include -o mnistCUDNN.o -c mnistCUDNN.cpp
[@] /usr/local/cuda/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_72,code=sm_72 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=compute_75 -o mnistCUDNN fp16_dev.o fp16_emu.o mnistCUDNN.o -I/usr/local/cuda/include -IFreeImage/include -LFreeImage/lib/linux/x86_64 -LFreeImage/lib/linux -lcudart -lcublas -lcudnn -lfreeimage -lstdc++ -lm

```

li@li-System-Product-Name:~/cudnn\_samples\_v7/mnistCUDNN$ ./mnistCUDNN  
bash: ./mnistCUDNN: No such file or directory

---

<div class="post-metadata">

**Author:** ![1104430777](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@1104430777](https://forums.developer.nvidia.com/u/1104430777)\
**Post date:** [May 1, 2019, 9:36am UTC](https://forums.developer.nvidia.com/t/cudnn-install-error/74001/2 "2019-05-01T09:36:45Z")

</div>

when i install cudnn ,i find some error .

---

<div class="post-metadata">

**Author:** ![jick155](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@jick155](https://forums.developer.nvidia.com/u/jick155)\
**Post date:** [May 19, 2019, 10:17am UTC](https://forums.developer.nvidia.com/t/cudnn-install-error/74001/3 "2019-05-19T10:17:59Z")

</div>

hello,i have same error ,but solved it now.  
it look like system can’t create new folder  
try chmod 777 for mnistCUDNN then try again,it work for me.

---

<div class="post-metadata">

**Author:** ![robertmoni](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@robertmoni](https://forums.developer.nvidia.com/u/robertmoni)\
**Post date:** [May 27, 2019, 2:36pm UTC](https://forums.developer.nvidia.com/t/cudnn-install-error/74001/4 "2019-05-27T14:36:12Z")

</div>

Hi!  
Solution provided by @jick155 worked for me. Thanks!

---

<div class="post-metadata">

**Author:** ![duanxingjian](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@duanxingjian](https://forums.developer.nvidia.com/u/duanxingjian)\
**Post date:** [March 7, 2020, 2:29am UTC](https://forums.developer.nvidia.com/t/cudnn-install-error/74001/5 "2020-03-07T02:29:33Z")

</div>

Yup, @jick155’s solution worked for me

---

<div class="post-metadata">

**Author:** ![670080658](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@670080658](https://forums.developer.nvidia.com/u/670080658)\
**Post date:** [January 19, 2022, 12:49pm UTC](https://forums.developer.nvidia.com/t/cudnn-install-error/74001/6 "2022-01-19T12:49:27Z")

</div>

sudo make clean && make

works for me

---

<div class="post-metadata">

**Author:** ![bhimavarapu.reddy](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@bhimavarapu.reddy](https://forums.developer.nvidia.com/u/bhimavarapu.reddy)\
**Post date:** [September 15, 2022, 1:39pm UTC](https://forums.developer.nvidia.com/t/cudnn-install-error/74001/7 "2022-09-15T13:39:53Z")

</div>

what is the command exactly, can u please comment correct command i dont know how to do this

---

<div class="post-metadata">

**Author:** ![yangtianqwer](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@yangtianqwer](https://forums.developer.nvidia.com/u/yangtianqwer)\
**Post date:** [October 11, 2024, 10:42pm UTC](https://forums.developer.nvidia.com/t/cudnn-install-error/74001/8 "2024-10-11T22:42:18Z")

</div>

Suppose you are in the folder of mnistCUDNN, go to one level above it (jump out of this folder).  
Then run command: sudo chmod 777 mnistCUDNN.  
In this way, you can change the permission of the folder.  
For me, this change helps it possible to successfully run make command.
