LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   pthread issues (https://www.linuxquestions.org/questions/linux-newbie-8/pthread-issues-610658/)

geek1234 01-02-2008 04:02 PM

pthread issues
 
Hi,

In my ubuntu gutsy machine, I deleted libpthread.so and 2-3 more related files from /usr/lib by mistake. Now when I am trying to install some other software, I get errors saying 'must have pthreads'. So somehow I have messed up pthreads. How can I fix this?

I searched a bit and found out that libthread may be provided by libc6. Is this correct? If yes, how can I get pthreads up again? Removing libc6 with apt-get removes a whole lot of other packages which is scary, so I did not do it. But how can I fix it without removing libc6 and installing it again?

Thanks

jailbait 01-02-2008 04:31 PM

Quote:

Originally Posted by geek1234 (Post 3008958)
Hi,

In my ubuntu gutsy machine, I deleted libpthread.so and 2-3 more related files from /usr/lib by mistake. Now when I am trying to install some other software, I get errors saying 'must have pthreads'. So somehow I have messed up pthreads. How can I fix this?

I searched a bit and found out that libthread may be provided by libc6. Is this correct? If yes, how can I get pthreads up again? Removing libc6 with apt-get removes a whole lot of other packages which is scary, so I did not do it. But how can I fix it without removing libc6 and installing it again?

Thanks

You can find out what files a package provides with synaptic. Click on libc6 to highlight it. Then click on properties at the top of the screen and click on Installed files. On my Debian system the resulting screen shows that /lib/libpthread-0.10.so is provided by package libc6.

You can probably get libpthread back by using the --reinstall option. Something like:

apt-get --reinstall install libc6

------------------------
Steve Stites

geek1234 01-04-2008 09:32 PM

Thanks, but that did not help me and the software I am trying to install still complains that it cannot find pthreads. I also resinstalled g++, libstdc and libstdc-dev pacakages, but still no luck. Does anyone have an idea what other things I could try to have pthreads working?


All times are GMT -5. The time now is 06:29 AM.