`
897371388
  • 浏览: 528219 次
文章分类
社区版块
存档分类
最新评论

ubuntu 下安装 pthread man 遇到的一些问题

 
阅读更多

代码时想看pthread_create的函数说明,敲入man pthread_create终端输出No manual entry for pthread_create。应该是有些man文档没有安装。


首先执行:

sudo apt-cache search pthread

搜索出来的第一行显示:
glibc-doc - GNU C Library: Documentation

应该就是这个文档没装,执行:


 sudo apt-get install glibc-doc

安装完后可以查看手册页,但man -k pthread 不能列出所有pthread的函数,需要安装posix-dev
sudo apt-get install manpages-posix-dev

此时有时候会出现

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package manpages-posix-dev

执行

sudo apt-get update

重启网络:

sudo /etc/init.d/networking restart


现在就差不多搞定拉




分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics