/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. 重新建立符号连接

添加软链接,重新覆盖。

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$ 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Yongqiang Cheng

梦想不是浮躁,而是沉淀和积累。

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值