man-inst.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Man</title>
  4. <para>There are three patches for Man. The first patch comments out one of the
  5. lines in the <filename>man.conf</filename> file (MANPATH /usr/man) to
  6. prevent redundant results when using programs such as
  7. <userinput>whatis</userinput>:</para>
  8. <para><screen><userinput>patch -Np1 -i ../man-&man-manpath-patch-version;-manpath.patch</userinput></screen></para>
  9. <para>The second patch adds the <emphasis>-R</emphasis> option to the
  10. <emphasis>PAGER</emphasis> variable so that escape sequences are
  11. handled properly:</para>
  12. <para><screen><userinput>patch -Np1 -i ../man-&man-pager-patch-version;-pager.patch</userinput></screen></para>
  13. <para>The last patch prevents problem when man pages not formatted
  14. with more than 80 columns are used in conjunction with recent releases
  15. of <userinput>groff</userinput>:</para>
  16. <para><screen><userinput>patch -Np1 -i ../man-&man-80cols-patch-version;-80cols.patch</userinput></screen></para>
  17. <para>The paths to some programs are written into man's files.
  18. Unfortunately, the configure script picks the last location in PATH
  19. rather than the first place a program is found. By appending
  20. <emphasis>/usr/bin:/bin</emphasis> to PATH for the
  21. <userinput>./configure</userinput> command, we ensure that man doesn't
  22. use the programs in the <filename class="directory">/static</filename>
  23. directory.</para>
  24. <para>Now prepare Man for compilation:</para>
  25. <para><screen><userinput>PATH=$PATH:/usr/bin:/bin ./configure -default -confdir=/etc</userinput></screen></para>
  26. <para>Compile the package:</para>
  27. <para><screen><userinput>make</userinput></screen></para>
  28. <para>And install it:</para>
  29. <para><screen><userinput>make install</userinput></screen></para>
  30. <note><para>If you wish to disable SGR escape sequences, you should
  31. edit the man.conf file and add the <userinput>-c</userinput> argument
  32. to nroff.</para></note>
  33. <para>You may want to take a look at the man hint
  34. at <ulink url="&hints-root;man.txt"/>, which deals with formatting
  35. and compression issues for man pages.</para>
  36. </sect2>