2024-09-01
Linux运维
00

/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.

在这里插入图片描述

如果对你有用的话,可以打赏哦
打赏
ali pay
wechat pay

本文作者:Dong

本文链接:

版权声明:本博客所有文章除特别声明外,均采用 CC BY-NC。本作品采用《知识共享署名-非商业性使用 4.0 国际许可协议》进行许可。您可以在非商业用途下自由转载和修改,但必须注明出处并提供原作者链接。 许可协议。转载请注明出处!