Score:3

How to solve "Please make sure libcudnn_cnn_infer.so.8 is in your library path!" (WSL Ubuntu)

eh flag

When I try to run a PyTorch program, it fails:

Could not load library libcudnn_cnn_infer.so.8. Error: libcuda.so: cannot open shared object file: No such file or directory
Please make sure libcudnn_cnn_infer.so.8 is in your library path!
Aborted

When I did apt-get for the cuda packages, and it was in a different directory than the library path. I copied the file and tried to paste it in the library path: /usr/lib/wsl/lib.

Turned out, the folder was read-only, and no matter what I did (e.g. chmod), it stayed that way. How should I edit the library path if the path is read-only?

***If I am missing any info, please ask

Score:1
eh flag

I solved this problem by typing export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/some/directory/ into bash.

Score:0
gb flag

I had to use

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64_linux-gnu/
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.