在哪里可以找到 Linux 的 pthreads?
我的系统中没有 pthreads。
Linux vps-sohoportal.hspheredns.com 2.6.18-294.26.1.el5.lve0.8.18xen #1 SMP Thu Feb 24 12:15:18 EET 2011 x86_64 x86_64 x86_64 GNU/Linux
当我尝试配置 sphinx 时出现错误:
配置狮身人面像
checking for CFLAGS needed for pthreads...
checking for LIBS needed for pthreads...
checking for pthreads... configure: error: no working pthreads library found
I do not have pthreads in my system.
Linux vps-sohoportal.hspheredns.com 2.6.18-294.26.1.el5.lve0.8.18xen #1 SMP Thu Feb 24 12:15:18 EET 2011 x86_64 x86_64 x86_64 GNU/Linux
When I try to configure sphinx have error:
configuring Sphinx
checking for CFLAGS needed for pthreads...
checking for LIBS needed for pthreads...
checking for pthreads... configure: error: no working pthreads library found
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
找到您的发行版的
pthread-stubs
包。检查您的包管理器。如果找不到它,它应该随您的编译器一起提供。
Find the
pthread-stubs
package of your distribution. Check in your package manager.If you can't find it, it should be shipped with your compiler.
对于 ubuntu/apt 用户,以下是我们如何查找并安装该软件包的方法:(
感谢本线程中接受的答案。)
此外,在 ubuntu 22 中,它安装在
/usr/lib/x86_64-linux-gnu 下/
目录。For ubuntu/apt users, here is how we find and install the package:
(Thanks to the accepted answer in this thread.)
Also, in ubuntu 22, it is installed under
/usr/lib/x86_64-linux-gnu/
dir.