Score:1

libpthreads.so missing in Ubuntu 21.10 (amd64)

sy flag

I tried to locate libpthread.so but it only gave me:

/lib/x86_64-linux-gnu/libpthread.so.0

I then installed it with:

sudo apt-get install libpthread-stubs0-dev

But still, no libpthread.so. Please, can someone help?

hr flag
What is the actual problem you are trying to solve here? If you are trying to build a program using POSIX threads with gcc, you should probably be using your compiler's `-pthread` option rather than explicitly linking against `libpthread`. See for example [Difference between -pthread and -lpthread while compiling](https://stackoverflow.com/a/62561519/4440445)
Score:2
fr flag

Just faced the same issue. One quick workaround is to make a symlink:

sudo ln -s /usr/lib/x86_64-linux-gnu/libpthread.so.0 /usr/lib/x86_64-linux-gnu/libpthread.so
bugmenot123 avatar
ng flag
But why are those links missing? Manually doing things in /usr/lib is not a good idea so the actual cause and solution would be nice.
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.