sudo ldconfig报错:/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn.so.7 is not a symbolic link

在Ubuntu16.04下安装opencv3.4.5
sudo ldconfig报错:/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn.so.7 is not a symbolic link(符号链接)
解决办法:建立软链接
首先打开libcudnn.so.7所在的目录.
cd /usr/local/cuda-10.2/targets/x86_64-linux/lib,ls查看,
发现Libcudnn.so.7 和libcudnn.so.7.6.5 两个文件
sudo ln -sf /usr/local/cuda-10.2/lib64/libcudnn.so.7.6.5 /usr/local/cuda-10.2/lib64/libcudnn.so.7
重新运行sudo ldconfig即可解决!

你可能感兴趣的:(sudo ldconfig报错:/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn.so.7 is not a symbolic link)