6/28/2021

/sbin/ldconfig.real: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn.so.8 is not a symbolic link

 Problems

-------
> sudo ldconfig
/sbin/ldconfig.real: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8 is not a symbolic link
/sbin/ldconfig.real: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_adv_train.so.8 is not a symbolic link
/sbin/ldconfig.real: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8 is not a symbolic link
/sbin/ldconfig.real: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8 is not a symbolic link
/sbin/ldconfig.real: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn.so.8 is not a symbolic link
/sbin/ldconfig.real: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_ops_train.so.8 is not a symbolic link
/sbin/ldconfig.real: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8 is not a symbolic link


Solution

delete .so and .so.8 file and make ln file

refer to below command

-------

cd /usr/local/cuda-11.2/targets/x86_64-linux/lib/
ls -lha libcudnn*

##solution
sudo rm libcudnn.so
sudo rm libcudnn.so.8
sudo ln libcudnn.so.8.1.0 libcudnn.so.8
sudo ln libcudnn.so.8 libcudnn.so

sudo rm libcudnn_adv_infer.so
sudo rm libcudnn_adv_infer.so.8
sudo ln libcudnn_adv_infer.so.8.1.0 libcudnn_adv_infer.so.8
sudo ln libcudnn_adv_infer.so.8 libcudnn_adv_infer.so

sudo rm libcudnn_adv_train.so
sudo rm libcudnn_adv_train.so.8
sudo ln libcudnn_adv_train.so.8.1.0 libcudnn_adv_train.so.8
sudo ln libcudnn_adv_train.so.8 libcudnn_adv_train.so

sudo rm libcudnn_cnn_infer.so
sudo rm libcudnn_cnn_infer.so.8
sudo ln libcudnn_cnn_infer.so.8.1.0 libcudnn_cnn_infer.so.8
sudo ln libcudnn_cnn_infer.so.8 libcudnn_cnn_infer.so

sudo rm libcudnn_cnn_train.so
sudo rm libcudnn_cnn_train.so.8
sudo ln libcudnn_cnn_train.so.8.1.0 libcudnn_cnn_train.so.8
sudo ln libcudnn_cnn_train.so.8 libcudnn_cnn_train.so

sudo rm libcudnn_ops_train.so
sudo rm libcudnn_ops_train.so.8
sudo ln libcudnn_ops_train.so.8.1.0 libcudnn_ops_train.so.8
sudo ln libcudnn_ops_train.so.8 libcudnn_ops_train.so

sudo rm libcudnn_ops_infer.so
sudo rm libcudnn_ops_infer.so.8
sudo ln libcudnn_ops_infer.so.8.1.0 libcudnn_ops_infer.so.8
sudo ln libcudnn_ops_infer.so.8 libcudnn_ops_infer.so


Thank you!

πŸ™‡πŸ»‍♂️

No comments:

Post a Comment