9

It's Linux Ubuntu 14. I'm trying to install gnu radio and when I try to configure, pthread library is missing. I then do

sudo apt-get install pthread

I got this as return:

akula@akula:~/OpenBts/gnuradio-3.4.0$ cd ~
akula@akula:~$ sudo apt-get install pthread
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package pthread

I did already all kinds of updates and everything else I found on the internet.

If anyone could help me, I would be grateful.

  • 2
    What is the exact error message (that prompts you to install libpthread)? – edwin Apr 23 '14 at 18:00
  • 1
    Why do you want to install pthread? Its a C library available by default. – jobin Apr 23 '14 at 18:04
19

The correct name of the package is libpthread-stubs0-dev:
sudo apt-get install libpthread-stubs0-dev

|improve this answer|||||
  • It's already installed in 15.10 at least. – the_drow Dec 6 '15 at 17:56
  • 3
    Sorry I m late to the party... But I've always been wondering: how the hell do you know/find out the name of that package? There is no way you just guess such a name! – LandonZeKepitelOfGreytBritn Jul 15 '17 at 10:29
  • 2
    You still kind of have to know the package name, but apt search pthread is helpful for listing packages that mention pthread. – benf Sep 1 '17 at 21:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.