man-inst.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Man</title>
  4. <para>Prepare Man to be compiled:</para>
  5. <para><screen><userinput>
  6. patch -Np1 -i ../man-&man-80cols-patch-version;-80cols.patch &amp;&amp;
  7. patch -Np1 -i ../man-&man-manpath-patch-version;-manpath.patch &amp;&amp;
  8. patch -Np1 -i ../man-&man-pager-patch-version;-pager.patch &amp;&amp;
  9. PATH=$PATH:/usr/bin:/bin \
  10. &nbsp;&nbsp;&nbsp;&nbsp;./configure -default -confdir=/etc
  11. </userinput></screen></para>
  12. <para>Continue with compiling the package:</para>
  13. <para><screen><userinput>make</userinput></screen></para>
  14. <para>And finish off installing the package:</para>
  15. <para><screen><userinput>make install</userinput></screen></para>
  16. <note><para>If you wish to disable SGR escape sequences, you should
  17. edit the man.conf file and add the <userinput>-c</userinput> argument
  18. to nroff.</para></note>
  19. <para>You may want to take a look at the man hint
  20. at <ulink url="&hints-root;man.txt"/>, which deals with formatting
  21. and compression issues for man pages.</para>
  22. </sect2>
  23. <sect2>
  24. <title>Command explanations</title>
  25. <para><userinput>patch...:</userinput>
  26. These three patches comment out one of the lines in the
  27. <filename>man.conf</filename> file (MANPATH /usr/man) because it will create
  28. redundant results when using programs like <userinput>whatis</userinput>.
  29. It also adds the <emphasis>-R</emphasis> option to the
  30. <emphasis>PAGER</emphasis> variable so man pages are displayed properly.
  31. Lastly, the patch fixes the problem where man pages are not formatted with
  32. more than 80 columns when used with the recent groff versions.</para>
  33. <para><userinput>PATH=$PATH:/usr/bin:/bin ./configure -default</userinput>:
  34. The paths to some programs get written into man's files. Unfortunately, the
  35. configure script picks the last location in PATH rather than the first
  36. where a program is found. By appending /usr/bin:/bin to PATH for the
  37. ./configure command, we make sure that man doesn't use the /static versions
  38. of our programs.</para>
  39. </sect2>