old-www/HOWTO/Software-Building-HOWTO-8.html

56 lines
2.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Building and Installing Software Packages for Linux: Final Steps</TITLE>
<LINK HREF="Software-Building-HOWTO-9.html" REL=next>
<LINK HREF="Software-Building-HOWTO-7.html" REL=previous>
<LINK HREF="Software-Building-HOWTO.html#toc8" REL=contents>
</HEAD>
<BODY>
<A HREF="Software-Building-HOWTO-9.html">Next</A>
<A HREF="Software-Building-HOWTO-7.html">Previous</A>
<A HREF="Software-Building-HOWTO.html#toc8">Contents</A>
<HR>
<H2><A NAME="finalsteps"></A> <A NAME="s8">8. Final Steps</A></H2>
<P>Read the software package documentation to determine whether certain
environmental variables need setting (in <CODE>.bashrc</CODE>
or <CODE>.cshrc</CODE>) and
if the <CODE>.Xdefaults</CODE> and <CODE>.Xresources</CODE> files need customizing.
<P>There may be an applications default file, usually named <CODE>Xfoo.ad</CODE>
in the original Xfoo distribution. If so, edit the Xfoo.ad file to
customize it for your machine, then rename (<B>mv</B>) it Xfoo
and install it in the <CODE>/usr/lib/X11/app-defaults</CODE> directory,
<EM>as root</EM>. Failure to do this may cause the software to behave
strangely or even refuse to run.
<P>Most software packages come with one or more preformatted man
pages. <EM>As root</EM>, copy the Xfoo.man file to the appropriate
<CODE>/usr/man</CODE>, <CODE>/usr/local/man</CODE>, or <CODE>/usr/X11R6/man</CODE>
directory (<CODE>man1</CODE> - <CODE>man9</CODE>), and rename it accordingly.
For example, if Xfoo.man ends up in /usr/man/man4, it should be
renamed Xfoo.4 (mv Xfoo.man Xfoo.4). By convention, user commands go
in <CODE>man1</CODE>, games in <CODE>man6</CODE>, and administration packages in
<CODE>man8</CODE> (see the <EM>man docs</EM> for more details). Of course,
you may deviate from this on your own system, if you like.
<P>A few packages will not install the binaries in the appropriate system
directories, that is, they are missing the <EM>install</EM> option in the
<CODE>Makefile</CODE>. Should this be the case, you can install the binaries
manually by copying the binaries to the appropriate system directory,
<CODE>/usr/bin</CODE>, <CODE>/usr/local/bin</CODE> or <CODE>/usr/X11R6/bin</CODE>,
<EM>as root</EM>, of course. Note that <CODE>/usr/local/bin</CODE> is
the preferred directory for binaries that are not part of the Linux
distribution's base install.
<P>Some or all of the above procedures should, in most cases, be handled
automatically by a <B>make install</B>, and possibly a <B>make
install.man</B> or <B>make install_man</B>. If so, the <CODE>README</CODE>
or <CODE>INSTALL</CODE> doc file will specify this.
<P>
<P>
<HR>
<A HREF="Software-Building-HOWTO-9.html">Next</A>
<A HREF="Software-Building-HOWTO-7.html">Previous</A>
<A HREF="Software-Building-HOWTO.html#toc8">Contents</A>
</BODY>
</HTML>