debian下man gcc的问题
来源:互联网 发布:数据恢复软件代理 编辑:程序博客网 时间:2024/06/06 14:14
原链:http://unix.stackexchange.com/questions/42474/find-and-install-man-file-manually
Many GNU projects, including GCC, license their documentation under the GNU Free Documentation License. There is a long-standing dispute between the Free Software Foundation and the Debian project, which considers theGFDL to be non-free, mostly because it can forbid some sections of the documentation from being modified.
For this reason, the GCC documentation is not included in the Debian distribution itself. It is, however, distributed by the Debian project as part of the “non-free” repository. That the non-free repository is officially supported by Debian but not officially part of Debian is the result of much debate and compromise inside the Debian project.
You can search on the Debian website for a package containing the file g++.1
(select “packages that contain files whose names contain the keyword”, because the man page is actually compressed so the file name isg++.1.gz
). You'll find it in thegcc-VERSION-doc package, which is a meta-package in the contrib repository that depends on the gcc-VERSION-doc package in the non-free repository.
On your machine, make sure that you have the contrib and non-free repositories enabled. Your/etc/apt/sources.list
should contain a line like
deb http://ftp.debian.org/debian squeeze main non-free contrib
or multiple lines like
deb http://ftp.debian.org/debian squeeze maindeb http://ftp.debian.org/debian squeeze contribdeb http://ftp.debian.org/debian squeeze non-free
If you modify /etc/apt/sources.list
, runapt-get update
as root afterwards. Once you have these repositories in your sources, you can useapt-file to search for the package containing a file by name. You need to runapt-file update
as root after installing the program or modifying the sources list.
apt-file search g++.1
Once you find what package the file you want is in (as indicated above, you want theg++-doc
package), useapt-get install g++-doc
or whatever your favorite package manager is.
总结:问题解决方法如下;
在sources里面添加
deb http://ftp.debian.org/debian squeeze maindeb http://ftp.debian.org/debian squeeze contribdeb http://ftp.debian.org/debian squeeze non-free
然后在终端:
apt-get update
apt-get install gcc-doc(如果安装g++的manual,就apt-get install g++-doc)
问题解决。
- debian下man gcc的问题
- Debian/Ubuntu的man手册不全的问题
- Debian 下的 locale问题
- debian 安装gcc 设置 media cdrom 的问题打
- Debian 下xmms乱码问题的解决
- Debian下上网速度慢的问题
- Debian下MySQL安装的问题
- linux debian 下安装gcc及nginx
- Linux下的man
- man的问题:
- ubuntu 下安装 pthread man 遇到的一些问题
- ubuntu 下安装 pthread man 遇到的一些问题
- debian下MATLAB的OpenGL警告问题的解决
- GCC下使用UNICODE的一些问题
- ubuntu下arm-linux-gcc的问题
- ubuntu下arm-linux-gcc的问题
- ubuntu下arm-linux-gcc的问题
- ubuntu下arm-linux-gcc的问题
- datagrid - jQuery EasyUI中文帮助手册
- 变量初始化
- vi编辑器的使用
- 特权级--ring0到ring3
- 请不要责备那些翻译书的人
- debian下man gcc的问题
- linux下文件的权限
- Schema简单教程
- Tomcat日志log4j的使用
- WPF简单的User Control
- 關於ArrayList,FastArrayList,TreeList,Vector,Stack的效能測試
- b标签、Strong标签、h1标签的区别以及使用
- 应对监管机构,谷歌迈入搜索2.0时代
- iphone崩溃日志分析工具symbolicatecrash用法