令人惊讶的是,我在任何地方都找不到这个。我正在尝试使用 php
的 Thread 类。为此,我必须安装 pthreads
。
如何在 Debian 8
上安装 pthreads
?
Pthreads是libc6软件包的一部分:
dpkg -L libc6 | grep pthread
/lib/arm-linux-gnueabihf/libpthread-2.19.so
/lib/arm-linux-gnueabihf/libpthread.so.0
如果您正在编译东西,可能需要libc6-dev:
dpkg -L libc6-dev | grep pthread
/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h
/usr/include/pthread.h
/usr/lib/arm-linux-gnueabihf/libpthread_nonshared.a
/usr/lib/arm-linux-gnueabihf/libpthread.so
/usr/lib/arm-linux-gnueabihf/libpthread.a