LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1154|回复: 9

请问有人在Debian 4.03上安装过gcc posix等的帮助文档吗?

[复制链接]
发表于 2008-5-21 14:26:03 | 显示全部楼层 |阅读模式
请问有人在Debian 4.03上安装过gcc posix等的帮助文档吗?
发表于 2008-5-22 10:38:48 | 显示全部楼层
好像是有相关的包。或者你可以自己下载html或者pdf版本的文件。不知道你要什么,但是应该有你要的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-22 14:02:52 | 显示全部楼层
我是想安装man pages啊,比如我man 2 open在Debian上不能找到阿:(
回复 支持 反对

使用道具 举报

发表于 2008-5-23 13:25:41 | 显示全部楼层
可能是你配置源的问题,我也有类似的问题。 在你的源里加上 contrib 和 non-free 了吗?我就是这样解决的。
通过以下链接可以看到, gcc的doc是属于 contrib 和 non-free 的.
http://www.debian.org/distrib/packages
http://packages.debian.org/searc ... ble&section=all
回复 支持 反对

使用道具 举报

发表于 2008-5-23 13:27:28 | 显示全部楼层
不是很明白 gcc 的 doc 为什么被列经了 non-free
回复 支持 反对

使用道具 举报

发表于 2008-5-23 13:39:52 | 显示全部楼层
没仔细看, 这里有 gcc man 被列成 non-free 的理由: http://packages.debian.org/etch/gcc-4.1-doc
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-24 01:56:09 | 显示全部楼层
I use the Synaptic Package Manager can't fetch what I want
Can anyone help me out.
回复 支持 反对

使用道具 举报

发表于 2008-5-26 09:27:12 | 显示全部楼层
synaptic's 菜单:  settings --> repositories
设定你的 synaptic, 在 section(s) 那栏加上你要的东西,  其实就是在配置 sources.list

附上图片

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2008-6-3 13:03:40 | 显示全部楼层
source.list文件中没有包含non-free的原因。
回复 支持 反对

使用道具 举报

发表于 2008-6-3 14:06:57 | 显示全部楼层
你如果要LINUX下开发函数的MANPAGE的话,需要安装manpages-dev这个包
txi@ghosTunix:~$ aptitude search manpages-dev
i   manpages-dev                                  - Manual pages about using GNU/Linux for development
安装完成后就可以查询各种函数接口的man了
txi@ghosTunix:~$ man 2 open
OPEN(2)                                 Linux Programmer's Manual                                OPEN(2)

NAME
       open, creat - open and possibly create a file or device

SYNOPSIS
       #include <sys/types.h>
       #include <sys/stat.h>
       #include <fcntl.h>

       int open(const char *pathname, int flags);
       int open(const char *pathname, int flags, mode_t mode);

       int creat(const char *pathname, mode_t mode);

DESCRIPTION
       Given  a pathname for a file, open() returns a file descriptor, a small, non-negative integer for
       use in subsequent system calls (read(2), write(2), lseek(2), fcntl(2), etc.).  The file  descrip-
       tor  returned by a successful call will be the lowest-numbered file descriptor not currently open
       for the process.

       By default, the new file descriptor is  set  to  remain  open  across  an  execve(2)  (i.e.,  the
       FD_CLOEXEC  file  descriptor flag described in fcntl(2) is initially disabled; the Linux-specific
       O_CLOEXEC flag, described below, can be used to change this default).  The file offset is set  to
       the beginning of the file (see lseek(2)).

       A  call  to open() creates a new open file description, an entry in the system-wide table of open
       files.  This entry records the file offset and the file status flags (modifiable via the fcntl(2)
       F_SETFL  operation).  A file descriptor is a reference to one of these entries; this reference is
       unaffected if pathname is subsequently removed or modified to refer to a different file.  The new
       open  file  description is initially not shared with any other process, but sharing may arise via
       fork(2).

Manual page open(2) line 1
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表