CUDA installation error: ./cuda-installer: error while loading shared libraries: libxml2.so.2: cannot open shared ob

When installing cuda11.1 in docker, the following error is reported:

./cuda-installer: error while loading shared libraries: libxml2.so.2: cannot open shared object file

Solution:

#更新源
apt update

#安装libxml2插件
apt -y install libxml2

After the installation is complete, try to install cuda again;
when installing cuda, remember to add sudo if you are not the root user;sudo cuda_11.1.0_455.23.05_linux.run

Done!

Guess you like

Origin blog.csdn.net/liu_chen_yang/article/details/130263173