2003-04-15 04:26:01 +08:00
|
|
|
<appendix id="appendices-generic">
|
|
|
|
<?dbhtml filename="generic.html" dir="appendices"?>
|
|
|
|
<title>Installing in non-default locations</title>
|
|
|
|
|
|
|
|
<para>When you want to install a package to a location other than
|
2003-04-22 04:24:40 +08:00
|
|
|
<filename class='directory'>/</filename>, or <filename class='directory'>/usr</filename>, you are installing
|
2003-10-04 05:35:57 +08:00
|
|
|
outside the default environment settings on most machines. The following
|
2003-04-15 04:26:01 +08:00
|
|
|
examples should assist you in determining how to correct this situation.
|
|
|
|
The examples cover the complete range of settings that may need
|
|
|
|
updating, but they are not all needed in every situation.</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
2003-04-22 04:24:40 +08:00
|
|
|
<listitem><para>Expand the <envar>PATH</envar> to include
|
2003-05-18 20:33:54 +08:00
|
|
|
<filename class='directory'>$PREFIX/bin</filename>.</para></listitem>
|
2003-04-22 04:24:40 +08:00
|
|
|
<listitem><para>Expand the <envar>PATH</envar> for root to include
|
2003-05-18 20:33:54 +08:00
|
|
|
<filename class='directory'>$PREFIX/sbin</filename>.</para></listitem>
|
2003-06-04 10:39:18 +08:00
|
|
|
<listitem><para>Add <filename class='directory'>$PREFIX/lib</filename>
|
2003-04-22 04:24:40 +08:00
|
|
|
to <filename>/etc/ld.so.conf</filename> or expand
|
2003-09-29 12:06:53 +08:00
|
|
|
<envar>LD_LIBRARY_PATH</envar> to include it. Before using the latter option,
|
|
|
|
check out <ulink url="http://www.visi.com/~barr/ldpath.html"/>.</para></listitem>
|
2003-04-22 04:24:40 +08:00
|
|
|
<listitem><para>Add <filename class='directory'>$PREFIX/man</filename>
|
|
|
|
to <filename>/etc/man.conf</filename> or expand <envar>MANPATH</envar>.</para></listitem>
|
2003-05-18 20:33:54 +08:00
|
|
|
<listitem><para>Add <filename class='directory'>$PREFIX/info</filename>
|
2003-04-22 04:24:40 +08:00
|
|
|
to <envar>INFOPATH</envar>.</para></listitem>
|
|
|
|
<listitem><para>Add <filename
|
|
|
|
class='directory'>$PREFIX/lib/pkgconfig</filename> to
|
|
|
|
<envar>PKG_CONFIG_PATH</envar>.</para></listitem>
|
|
|
|
<listitem><para>Add <filename
|
|
|
|
class='directory'>$PREFIX/include</filename> to <envar>CPPFLAGS</envar> when compiling packages
|
2003-04-15 04:26:01 +08:00
|
|
|
that depend on the package you installed.</para></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
</appendix>
|