/sbin/ldconfig.real: /usr/local/cuda/lib64/libcudnn.so.7 is not a symbolic link
This may happen when you run sudo ldconfig after copying cuDNN files.
After installing cuDNN, copying the extracted files to /usr/lib/cuda/lib64 and creating the symlinks, things may go wrong with the symlinks.
So go to /usr/local/cuda/lib64/ and run ls -lha libcudnn*
You should see two symlinks (bold teal) and one single file. Something like this:
The exact version of libcudnn.so.5.1.5 maybe be a little different for you (maybe libcudnn.so.5.1.10). In that case, adapt the code accordingly
/usr/local/cuda/lib64$ ls -lha libcudnn*
lrwxrwxrwx 1 root root 13 Dez 25 23:56 libcudnn.so -> libcudnn.so.5
lrwxrwxrwx 1 root root 17 Dez 25 23:55 libcudnn.so.5 -> libcudnn.so.5.1.5
-rwxr-xr-x 1 root root 76M Dez 25 23:27 libcudnn.so.5.1.5
If libcudnn.so and libcudnn.so.5 are not symlinks then this is the reason why you got this error. If so, this is what you need to do:
/usr/local/cuda/lib64$ sudo rm libcudnn.so
/usr/local/cuda/lib64$ sudo rm libcudnn.so.5
/usr/local/cuda/lib64$ sudo ln libcudnn.so.5.1.5 libcudnn.so.5
/usr/local/cuda/lib64$ sudo ln libcudnn.so.5 libcudnn.so
Run sudo ldconfig again and there should be no errors
reference
'OS & Tools > Error' 카테고리의 다른 글
[grub rescue] 리눅스 삭제 후 발생 하는 grub 해결 (0) | 2021.01.17 |
---|---|
[error] ROS-i2cpwmboard package error when compiled (catkin_make) on ubuntu-16.04 ROS kinetic (0) | 2020.05.08 |
[error] How To Fix ------ 404 Not Found [IP: 91.189.95.83 80] (0) | 2020.05.01 |
[error] "[gazebo-2] process has died [pid xxxxx, ..." (3) | 2020.04.30 |
error 200228 (1) | 2020.02.28 |