Changeset 46a2e9c for chapter06/man.xml
- Timestamp:
- 01/06/2006 02:59:05 AM (19 years ago)
- Children:
- e1ca33a
- Parents:
- 1714f1a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/man.xml
r1714f1a r46a2e9c 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 %general-entities;5 ]>6 <sect1 id="ch-system-man" role="wrap">7 <title>Man-&man-version;</title>8 <?dbhtml filename="man.html"?>9 10 <indexterm zone="ch-system-man"><primary sortas="a-Man">Man</primary></indexterm>11 12 <sect2 role="package"><title/>13 <para>The Man package contains programs for finding and viewing man pages.</para>14 15 <segmentedlist>16 <segtitle>&buildtime;</segtitle>17 <segtitle>&diskspace;</segtitle>18 <seglistitem><seg>0.1 SBU</seg><seg>1.3 MB</seg></seglistitem>19 </segmentedlist>20 21 <segmentedlist>22 <segtitle>&dependencies;</segtitle>23 <seglistitem><seg>Bash, Binutils, Bzip2, Coreutils, Diffutils, Gawk, GCC,24 Glibc, Grep, Gzip, Less, Make, and Sed</seg></seglistitem>25 </segmentedlist>26 </sect2>27 28 <sect2 role="installation">29 <title>Installation of Man</title>30 31 <para>Two adjustments need to be made to the sources of Man.</para>32 33 <para>The first is a <command>sed</command> substitution to add the34 <parameter>-R</parameter> switch to the <envar>PAGER</envar>35 variable so that escape sequences are properly handled by Less:</para>36 37 <screen><userinput>sed -i 's@-is@&R@g' configure</userinput></screen>38 39 <para>The second is also a <command>sed</command> substitution to comment out the40 <quote>MANPATH /usr/man</quote> line in the41 <filename>man.conf</filename> file to prevent redundant results when42 using programs such as <command>whatis</command>:</para>43 44 <screen><userinput>sed -i 's@MANPATH./usr/man@#&@g' src/man.conf.in</userinput></screen>45 46 <para>Prepare Man for compilation:</para>47 48 <screen><userinput>./configure -confdir=/etc</userinput></screen>49 50 <para>The meaning of the configure options:</para>51 52 <variablelist>53 <varlistentry>54 <term><parameter>-confdir=/etc</parameter></term>55 <listitem><para>This tells the <command>man</command> program to look for the56 <filename>man.conf</filename> configuration file in the <filename57 class="directory">/etc</filename> directory.</para></listitem>58 </varlistentry>59 </variablelist>60 61 <para>Compile the package:</para>62 63 <screen><userinput>make</userinput></screen>64 65 <para>This package does not come with a test suite.</para>66 67 <para>Install the package:</para>68 69 <screen><userinput>make install</userinput></screen>70 71 <note><para>If you will be working on a terminal that does not support text72 attributes such as color and bold, you can disable Select Graphic Rendition73 (SGR) escape sequences by editing the <filename>man.conf</filename> file and74 adding the <parameter>-c</parameter> option to the <envar>NROFF</envar>75 variable. If you use multiple terminal types for one computer it may be better76 to selectively add the <envar>GROFF_NO_SGR</envar> environment variable for the77 terminals that do not support SGR.</para></note>78 79 <para>If the character set of the locale uses 8-bit characters, search for the80 line beginning with <quote>NROFF</quote> in <filename>/etc/man.conf</filename>,81 and verify that it matches the following:</para>82 83 <screen>NROFF /usr/bin/nroff -Tlatin1 -mandoc</screen>84 85 <para>Note that <quote>latin1</quote> should be used even if it is not86 the character set of the locale. The reason is that, according to the87 specification, <command>groff</command> has no means of typesetting88 characters outside International Organization for Standards89 (ISO) 8859-1 without some strange escape codes. When formatting man90 pages, <command>groff</command> thinks that they are in the ISO 8859-191 encoding and this <parameter>-Tlatin1</parameter> switch tells92 <command>groff</command> to use the same encoding for output. Since93 <command>groff</command> does no recoding of input characters, the94 formatted result is really in the same encoding as input, and therefore95 it is usable as the input for a pager.</para>96 97 <para>This does not solve the problem of a non-working98 <command>man2dvi</command> program for localized man pages in99 non-ISO 8859-1 locales. Also, it does not work with multibyte100 character sets. The first problem does not currently have a solution.101 The second issue is not of concern because the LFS installation does102 not support multibyte character sets.</para>103 104 <para>Additional information with regards to the compression of105 man and info pages can be found in the BLFS book at106 <ulink url="&blfs-root;view/cvs/postlfs/compressdoc.html"/>.</para>107 108 </sect2>109 110 111 <sect2 id="contents-man" role="content"><title>Contents of Man</title>112 113 <segmentedlist>114 <segtitle>Installed programs</segtitle>115 <seglistitem><seg>apropos, makewhatis, man,116 man2dvi, man2html, and whatis</seg></seglistitem>117 </segmentedlist>118 119 <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>120 <?dbfo list-presentation="list"?>121 <?dbhtml list-presentation="table"?>122 123 <varlistentry id="apropos">124 <term><command>apropos</command></term>125 <listitem>126 <para>Searches the <command>whatis</command> database and displays the short descriptions127 of system commands that contain a given string</para>128 <indexterm zone="ch-system-man apropos"><primary sortas="b-apropos">apropos</primary></indexterm>129 </listitem>130 </varlistentry>131 132 <varlistentry id="makewhatis">133 <term><command>makewhatis</command></term>134 <listitem>135 <para>Builds the <command>whatis</command> database; it reads all the man pages136 in the <envar>MANPATH</envar> and writes the name and a short description in the137 <command>whatis</command> database for each page</para>138 <indexterm zone="ch-system-man makewhatis"><primary sortas="b-makewhatis">makewhatis</primary></indexterm>139 </listitem>140 </varlistentry>141 142 <varlistentry id="man">143 <term><command>man</command></term>144 <listitem>145 <para>Formats and displays the requested on-line man page</para>146 <indexterm zone="ch-system-man man"><primary sortas="b-man">man</primary></indexterm>147 </listitem>148 </varlistentry>149 150 <varlistentry id="man2dvi">151 <term><command>man2dvi</command></term>152 <listitem>153 <para>Converts a man page into dvi format</para>154 <indexterm zone="ch-system-man man2dvi"><primary sortas="b-man2dvi">man2dvi</primary></indexterm>155 </listitem>156 </varlistentry>157 158 <varlistentry id="man2html">159 <term><command>man2html</command></term>160 <listitem>161 <para>Converts a man page into HTML</para>162 <indexterm zone="ch-system-man man2html"><primary sortas="b-man2html">man2html</primary></indexterm>163 </listitem>164 </varlistentry>165 166 <varlistentry id="whatis">167 <term><command>whatis</command></term>168 <listitem>169 <para>Searches the <command>whatis</command> database and displays the short descriptions170 of system commands that contain the given keyword as a separate171 word</para>172 <indexterm zone="ch-system-man whatis"><primary sortas="b-whatis">whatis</primary></indexterm>173 </listitem>174 </varlistentry>175 </variablelist>176 177 </sect2>178 179 </sect1>180
Note:
See TracChangeset
for help on using the changeset viewer.