/sbin/ldconfig.real: /usr/local/lib/libcudnn.so.6 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libcudnn.so.6 is not a symbolic link

1. /sbin/ldconfig.real: /usr/local/lib/libcudnn.so.6 is not a symbolic link

strong@foreverstrong:/usr/local/cuda-8.0/lib64$ sudo ldconfig
/sbin/ldconfig.real: /usr/local/lib/libcudnn.so.6 is not a symbolic link

strong@foreverstrong:/usr/local/cuda-8.0/lib64$ 

2. Re-establish a symbolic link

Add soft links, re-cover.

strong@foreverstrong:~$ ll /usr/local/
total 44
drwxr-xr-x 11 root root 4096 Oct 12  2017 ./
drwxr-xr-x 13 root root 4096 Dec 21  2017 ../
drwxr-xr-x  3 root root 4096 Jun 19 16:42 bin/
lrwxrwxrwx  1 root root    8 Oct 12  2017 cuda -> cuda-8.0/
drwxr-xr-x 14 root root 4096 Oct 12  2017 cuda-8.0/
drwxr-xr-x  3 root root 4096 Jun  7  2018 etc/
drwxr-xr-x  2 root root 4096 Aug  1  2017 games/
drwxr-xr-x  5 root root 4096 Dec  3  2018 include/
drwxr-xr-x  6 root root 4096 Dec  3  2018 lib/
lrwxrwxrwx  1 root root    9 Oct 12  2017 man -> share/man/
drwxr-xr-x  2 root root 4096 Aug  1  2017 sbin/
drwxr-xr-x 12 root root 4096 Jun 23 23:55 share/
drwxr-xr-x  2 root root 4096 Aug  1  2017 src/
strong@foreverstrong:~$ 


strong@foreverstrong:~$ ll /usr/local/cuda-8.0/lib64/libcudnn*
-rwxr-xr-x 1 root root 154322864 Oct 12  2017 /usr/local/cuda-8.0/lib64/libcudnn.so*
-rwxr-xr-x 1 root root 154322864 Oct 12  2017 /usr/local/cuda-8.0/lib64/libcudnn.so.6*
-rwxr-xr-x 1 root root 154322864 Oct 12  2017 /usr/local/cuda-8.0/lib64/libcudnn.so.6.0.21*
-rw-r--r-- 1 root root 143843808 Oct 12  2017 /usr/local/cuda-8.0/lib64/libcudnn_static.a
strong@foreverstrong:~$ 
strong@foreverstrong:~$ ll /usr/local/cuda/lib64/libcudnn*
-rwxr-xr-x 1 root root 154322864 Oct 12  2017 /usr/local/cuda/lib64/libcudnn.so*
-rwxr-xr-x 1 root root 154322864 Oct 12  2017 /usr/local/cuda/lib64/libcudnn.so.6*
-rwxr-xr-x 1 root root 154322864 Oct 12  2017 /usr/local/cuda/lib64/libcudnn.so.6.0.21*
-rw-r--r-- 1 root root 143843808 Oct 12  2017 /usr/local/cuda/lib64/libcudnn_static.a
strong@foreverstrong:~$ 
strong@foreverstrong:~$ 
strong@foreverstrong:~$ cd /usr/local/cuda-8.0/lib64/
strong@foreverstrong:/usr/local/cuda-8.0/lib64$ 
strong@foreverstrong:/usr/local/cuda-8.0/lib64$ ll /usr/local/cuda-8.0/lib64/libcudnn*
-rwxr-xr-x 1 root root 154322864 Oct 12  2017 /usr/local/cuda-8.0/lib64/libcudnn.so*
-rwxr-xr-x 1 root root 154322864 Oct 12  2017 /usr/local/cuda-8.0/lib64/libcudnn.so.6*
-rwxr-xr-x 1 root root 154322864 Oct 12  2017 /usr/local/cuda-8.0/lib64/libcudnn.so.6.0.21*
-rw-r--r-- 1 root root 143843808 Oct 12  2017 /usr/local/cuda-8.0/lib64/libcudnn_static.a
strong@foreverstrong:/usr/local/cuda-8.0/lib64$ 
strong@foreverstrong:/usr/local/cuda-8.0/lib64$ sudo ln -sf libcudnn.so.6.0.21 libcudnn.so.6
strong@foreverstrong:/usr/local/cuda-8.0/lib64$ 
strong@foreverstrong:/usr/local/cuda-8.0/lib64$ ll /usr/local/cuda-8.0/lib64/libcudnn*
-rwxr-xr-x 1 root root 154322864 Oct 12  2017 /usr/local/cuda-8.0/lib64/libcudnn.so*
lrwxrwxrwx 1 root root        18 Jun 25 23:04 /usr/local/cuda-8.0/lib64/libcudnn.so.6 -> libcudnn.so.6.0.21*
-rwxr-xr-x 1 root root 154322864 Oct 12  2017 /usr/local/cuda-8.0/lib64/libcudnn.so.6.0.21*
-rw-r--r-- 1 root root 143843808 Oct 12  2017 /usr/local/cuda-8.0/lib64/libcudnn_static.a
strong@foreverstrong:/usr/local/cuda-8.0/lib64$ 
strong@foreverstrong:/usr/local/cuda-8.0/lib64$ sudo ln -sf libcudnn.so.6 libcudnn.so
strong@foreverstrong:/usr/local/cuda-8.0/lib64$ 
strong@foreverstrong:/usr/local/cuda-8.0/lib64$ ll /usr/local/cuda-8.0/lib64/libcudnn*
lrwxrwxrwx 1 root root        13 Jun 25 23:04 /usr/local/cuda-8.0/lib64/libcudnn.so -> libcudnn.so.6*
lrwxrwxrwx 1 root root        18 Jun 25 23:04 /usr/local/cuda-8.0/lib64/libcudnn.so.6 -> libcudnn.so.6.0.21*
-rwxr-xr-x 1 root root 154322864 Oct 12  2017 /usr/local/cuda-8.0/lib64/libcudnn.so.6.0.21*
-rw-r--r-- 1 root root 143843808 Oct 12  2017 /usr/local/cuda-8.0/lib64/libcudnn_static.a
strong@foreverstrong:/usr/local/cuda-8.0/lib64$ 
strong@foreverstrong:/usr/local/cuda-8.0/lib64$ ll /usr/local/cuda/lib64/libcudnn*
lrwxrwxrwx 1 root root        13 Jun 25 23:04 /usr/local/cuda/lib64/libcudnn.so -> libcudnn.so.6*
lrwxrwxrwx 1 root root        18 Jun 25 23:04 /usr/local/cuda/lib64/libcudnn.so.6 -> libcudnn.so.6.0.21*
-rwxr-xr-x 1 root root 154322864 Oct 12  2017 /usr/local/cuda/lib64/libcudnn.so.6.0.21*
-rw-r--r-- 1 root root 143843808 Oct 12  2017 /usr/local/cuda/lib64/libcudnn_static.a
strong@foreverstrong:/usr/local/cuda-8.0/lib64$ 
strong@foreverstrong:/usr/local/cuda-8.0/lib64$ sudo ldconfig
/sbin/ldconfig.real: /usr/local/lib/libcudnn.so.6 is not a symbolic link

strong@foreverstrong:/usr/local/cuda-8.0/lib64$ 


strong@foreverstrong:/usr/local/cuda-8.0/lib64$ cd /usr/local/lib/
strong@foreverstrong:/usr/local/lib$ ll libcudnn*
-rwxr-xr-x 1 root root 154322864 Oct 12  2017 libcudnn.so*
-rwxr-xr-x 1 root root 154322864 Oct 12  2017 libcudnn.so.6*
-rwxr-xr-x 1 root root 154322864 Oct 12  2017 libcudnn.so.6.0.21*
-rw-r--r-- 1 root root 143843808 Oct 12  2017 libcudnn_static.a
strong@foreverstrong:/usr/local/lib$ 
strong@foreverstrong:/usr/local/lib$ sudo ln -sf libcudnn.so.6.0.21 libcudnn.so.6
strong@foreverstrong:/usr/local/lib$ sudo ln -sf libcudnn.so.6 libcudnn.so
strong@foreverstrong:/usr/local/lib$ 
strong@foreverstrong:/usr/local/lib$ ll libcudnn*
lrwxrwxrwx 1 root root        13 Jun 25 23:10 libcudnn.so -> libcudnn.so.6*
lrwxrwxrwx 1 root root        18 Jun 25 23:09 libcudnn.so.6 -> libcudnn.so.6.0.21*
-rwxr-xr-x 1 root root 154322864 Oct 12  2017 libcudnn.so.6.0.21*
-rw-r--r-- 1 root root 143843808 Oct 12  2017 libcudnn_static.a
strong@foreverstrong:/usr/local/lib$ 
strong@foreverstrong:/usr/local/lib$ sudo ldconfig
strong@foreverstrong:/usr/local/lib$ 

Guess you like

Origin blog.csdn.net/chengyq116/article/details/93670265