我可以在哪里找到 Linux 的 pthreads

问题描述 投票:0回答:2

好的。我的最后一个问题将因拼写错误而被否决。好的。但我的系统中确实没有pthreads。 我的系统: Linux vps-sohoportal.hspheredns.com 2.6.18-294.26.1.el5.lve0.8.18xen #1 SMP 2 月 24 日星期四 12:15:18 EET 2011 x86_64 x86_64 x86_64 GNU/Linux

当我尝试配置 sphinx 时出现错误:

配置Sphinx

checking for CFLAGS needed for pthreads...
checking for LIBS needed for pthreads...
checking for pthreads... configure: error: no working pthreads library found

请帮忙

linux pthreads sphinx
2个回答
0
投票

找到您的发行版的

pthread-stubs
包。检查您的包管理器。

如果您找不到它,它应该随您的编译器一起提供。


0
投票

对于 ubuntu/apt 用户,我们如何查找并安装软件包:

$ apt search pthread-stubs
Sorting... Done. Full Text Search... Done
libpthread-stubs0-dev/kinetic 0.4-1build2 amd64
  pthread stubs not provided by native libc, development files

$ sudo apt install libpthread-stubs0-dev

(感谢本线程中接受的答案。)

此外,在 ubuntu 22 中,它安装在

/usr/lib/x86_64-linux-gnu/
目录下。

© www.soinside.com 2019 - 2024. All rights reserved.