在哪里可以找到 Linux 的 pthreads?

发布于 2024-12-04 17:02:00 字数 402 浏览 1 评论 0原文

我的系统中没有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

同展鸳鸯锦 2024-12-11 17:02:00

找到您的发行版的 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.

水水月牙 2024-12-11 17:02:00

对于 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 下/ 目录。

For ubuntu/apt users, here is how we find and install the package:

$ 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

(Thanks to the accepted answer in this thread.)

Also, in ubuntu 22, it is installed under /usr/lib/x86_64-linux-gnu/ dir.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文