我的系统中没有 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
找到您的发行版的
pthread-stubs
包。检查您的包管理器。
如果您找不到它,它应该随您的编译器一起提供。
对于 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/
目录下。