centos: error while loading shared libraries: libcudart.so.8.0

时间:2022-03-19 22:19:06

问题:./XXXXXXX: error while loading shared libraries: libcudart.so.8.0: cannot open shared object file: No such file or directory

解决方法:

sudo cp /usr/local/cuda-8.0/lib64/libcudart.so.8.0 /usr/lib/libcudart.so.8.0
sudo ldconfig 


不成功,但可选的解决办法:

sudo cp /usr/local/cuda-8.0/lib64/libcudart.so.8.0 /usr/local/lib/libcudart.so.8.0

sudo ldconfig