WSL /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link

/sbin/ldconfig.real: Can’t link /usr/lib/wsl/lib/libnvoptix_loader.so.1 to libnvoptix.so.1
/sbin/ldconfig.real: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link

解决:https://github.com/microsoft/WSL/issues/5548

There is another solution works for me :

  1. Open cmd as Administrator and cd into C:\Windows\System32\lxss\lib

  2. Delete libcuda.so and libcuda.so.1 (You can also do this in Windows Explorer as well)

  3. Run wsl -e /bin/bash in cmd and you should already in /mnt/c/Windows/System32/lxss/lib, now you have permission to create symlink:

ln -s libcuda.so.1.1 libcuda.so.1
ln -s libcuda.so.1.1 libcuda.so

Done.

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/x1131230123/article/details/132564672
wsl