Unable to locate package pthread

I'm using 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 get 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 already did all kinds of updates and everything else I found on the internet.

If anyone could help me, I would be grateful.


Solution 1:

The correct name of the package is libpthread-stubs0-dev:

sudo apt-get install libpthread-stubs0-dev

Solution 2:

sudo apt-get install libpthread-stubs0-dev seems to do nothing.

gcc -lpthreads will still result in a missing pthreads error. gcc -lpthread will still result in a missing pthreads error.

Use instead: gcc -pthread and get a missing main function error. This is expected behavior if everything else is okay.

This flag works on example pthread C file programs.

In Mint (thus Ubuntu) The file /lib/x86_64-linux-gnu/libpthread-2.31.so is in the libc6:amd64 package.