source: chapter06/man.xml@ b3ea288

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since b3ea288 was c076370, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Typo.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@6056 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 6.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 <!ENTITY % patches-entities SYSTEM "../patches.ent">
5 %general-entities;
6 %patches-entities;
7]>
8<sect1 id="ch-system-man" role="wrap">
9<title>Man-&man-version;</title>
10<?dbhtml filename="man.html"?>
11
12<indexterm zone="ch-system-man"><primary sortas="a-Man">Man</primary></indexterm>
13
14<sect2 role="package"><title/>
15<para>The Man package contains programs for finding and viewing manual pages.</para>
16
17<segmentedlist>
18<segtitle>&buildtime;</segtitle>
19<segtitle>&diskspace;</segtitle>
20<seglistitem><seg>0.1 SBU</seg><seg>2.9 MB</seg></seglistitem>
21</segmentedlist>
22
23<segmentedlist>
24<segtitle>&dependencies;</segtitle>
25<seglistitem><seg>Bash, Binutils, Coreutils, Gawk, GCC,
26Glibc, Grep, Make, and Sed</seg></seglistitem>
27</segmentedlist>
28</sect2>
29
30<sect2 role="installation">
31<title>Installation of Man</title>
32
33<para>Two adjustments need to be made to the sources of Man.</para>
34
35<para>The first is a <command>sed</command> substitution to add the
36<parameter>-R</parameter> switch to the <envar>PAGER</envar>
37variable so that escape sequences are properly handled by Less:</para>
38
39<screen><userinput>sed -i 's@-is@&amp;R@g' configure</userinput></screen>
40
41<para>The second is also a <command>sed</command> substitution to comment out the
42<quote>MANPATH /usr/man</quote> line in the
43<filename>man.conf</filename> file to prevent redundant results when
44using programs such as <command>whatis</command>:</para>
45
46<screen><userinput>sed -i 's@MANPATH./usr/man@#&amp;@g' src/man.conf.in</userinput></screen>
47
48<para>Prepare Man for compilation:</para>
49
50<screen><userinput>./configure -confdir=/etc</userinput></screen>
51
52<para>The meaning of the configure options:</para>
53
54<variablelist>
55<varlistentry>
56<term><parameter>-confdir=/etc</parameter></term>
57<listitem><para>This tells the <command>man</command> program to look for the
58<filename>man.conf</filename> configuration file in the <filename
59class="directory">/etc</filename> directory.</para></listitem>
60</varlistentry>
61</variablelist>
62
63<para>Compile the package:</para>
64
65<screen><userinput>make</userinput></screen>
66
67<para>Install the package:</para>
68
69<screen><userinput>make install</userinput></screen>
70
71<note><para>To disable Select Graphic Rendition (SGR) escape
72sequences, edit the <filename>man.conf</filename> file and
73add the <parameter>-c</parameter> switch to
74the <envar>NROFF</envar> variable.</para></note>
75
76<para>If the character set uses 8-bit characters, search for the line
77beginning with <quote>NROFF</quote> in
78<filename>/etc/man.conf</filename>, and verify that it looks as
79follows:</para>
80
81<screen>NROFF /usr/bin/nroff -Tlatin1 -mandoc</screen>
82
83<para>Note that <quote>latin1</quote> should be used even if it is not
84the character set of the locale. The reason is that, according to the
85specification, <command>groff</command> has no means of typesetting
86characters outside International Organization for Standards
87(ISO) 8859-1 without some strange escape codes. When formatting manual
88pages, <command>groff</command> thinks that they are in the ISO 8859-1
89encoding and this <parameter>-Tlatin1</parameter> switch tells
90<command>groff</command> to use the same encoding for output. Since
91<command>groff</command> does no recoding of input characters, the
92formatted result is really in the same encoding as input, and therefore
93it is usable as the input for a pager.</para>
94
95<para>This does not solve the problem of a non-working
96<command>man2dvi</command> program for localized manual pages in
97non-ISO 8859-1 locales. Also, it does not work with multibyte
98character sets. The first problem does not currently have a solution.
99The second issue is not of concern because the LFS installation does
100not support multibyte character sets.</para>
101
102<para>Additional information with regards to the compression of
103man and info pages can be found in the BLFS book at
104<ulink url="&blfs-root;view/cvs/postlfs/compressdoc.html"/>.</para>
105
106</sect2>
107
108
109<sect2 id="contents-man" role="content"><title>Contents of Man</title>
110
111<segmentedlist>
112<segtitle>Installed programs</segtitle>
113<seglistitem><seg>apropos, makewhatis, man,
114man2dvi, man2html, and whatis</seg></seglistitem>
115</segmentedlist>
116
117<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
118<?dbfo list-presentation="list"?>
119<?dbhtml list-presentation="table"?>
120
121<varlistentry id="apropos">
122<term><command>apropos</command></term>
123<listitem>
124<para>Searches the whatis database and displays the short descriptions
125of system commands that contain a given string</para>
126<indexterm zone="ch-system-man apropos"><primary sortas="b-apropos">apropos</primary></indexterm>
127</listitem>
128</varlistentry>
129
130<varlistentry id="makewhatis">
131<term><command>makewhatis</command></term>
132<listitem>
133<para>Builds the whatis database; it reads all the manual pages in the
134manpath and writes the name and a short description in the whatis
135database for each page</para>
136<indexterm zone="ch-system-man makewhatis"><primary sortas="b-makewhatis">makewhatis</primary></indexterm>
137</listitem>
138</varlistentry>
139
140<varlistentry id="man">
141<term><command>man</command></term>
142<listitem>
143<para>Formats and displays the requested on-line manual page</para>
144<indexterm zone="ch-system-man man"><primary sortas="b-man">man</primary></indexterm>
145</listitem>
146</varlistentry>
147
148<varlistentry id="man2dvi">
149<term><command>man2dvi</command></term>
150<listitem>
151<para>Converts a manual page into dvi format</para>
152<indexterm zone="ch-system-man man2dvi"><primary sortas="b-man2dvi">man2dvi</primary></indexterm>
153</listitem>
154</varlistentry>
155
156<varlistentry id="man2html">
157<term><command>man2html</command></term>
158<listitem>
159<para>Converts a manual page into HTML</para>
160<indexterm zone="ch-system-man man2html"><primary sortas="b-man2html">man2html</primary></indexterm>
161</listitem>
162</varlistentry>
163
164<varlistentry id="whatis">
165<term><command>whatis</command></term>
166<listitem>
167<para>Searches the whatis database and displays the short descriptions
168of system commands that contain the given keyword as a separate
169word</para>
170<indexterm zone="ch-system-man whatis"><primary sortas="b-whatis">whatis</primary></indexterm>
171</listitem>
172</varlistentry>
173</variablelist>
174
175</sect2>
176
177</sect1>
178
Note: See TracBrowser for help on using the repository browser.