1 | <appendix id="appendices-generic">
|
---|
2 | <?dbhtml filename="generic.html" dir="appendices"?>
|
---|
3 | <title>Installing in non-default locations</title>
|
---|
4 |
|
---|
5 | <para>When you want to install a package to a location other than
|
---|
6 | <filename class='directory'>/</filename>, or <filename class='directory'>/usr</filename>, you are installing
|
---|
7 | outside the default envionment settings on most machines. The following
|
---|
8 | examples should assist you in determining how to correct this situation.
|
---|
9 | The examples cover the complete range of settings that may need
|
---|
10 | updating, but they are not all needed in every situation.</para>
|
---|
11 |
|
---|
12 | <itemizedlist>
|
---|
13 | <listitem><para>Expand the <envar>PATH</envar> to include
|
---|
14 | <filename class='directory'>$<envar>PREFIX</envar>/bin</filename>.</para></listitem>
|
---|
15 | <listitem><para>Expand the <envar>PATH</envar> for root to include
|
---|
16 | <filename class='directory'>$<envar>PREFIX</envar>/sbin</filename>.</para></listitem>
|
---|
17 | <listitem><para>Add <filename class='directory'>$<envar>PREFIX</envar>/lib</filename>
|
---|
18 | to <filename>/etc/ld.so.conf</filename> or expand
|
---|
19 | <envar>LD_LIBRARY_PATH</envar> to include it.</para></listitem>
|
---|
20 | <listitem><para>Add <filename class='directory'>$PREFIX/man</filename>
|
---|
21 | to <filename>/etc/man.conf</filename> or expand <envar>MANPATH</envar>.</para></listitem>
|
---|
22 | <listitem><para>Add <filename class='directory'>$<envar>PREFIX</envar>/info</filename>
|
---|
23 | to <envar>INFOPATH</envar>.</para></listitem>
|
---|
24 | <listitem><para>Add <filename
|
---|
25 | class='directory'>$PREFIX/lib/pkgconfig</filename> to
|
---|
26 | <envar>PKG_CONFIG_PATH</envar>.</para></listitem>
|
---|
27 | <listitem><para>Add <filename
|
---|
28 | class='directory'>$PREFIX/include</filename> to <envar>CPPFLAGS</envar> when compiling packages
|
---|
29 | that depend on the package you installed.</para></listitem>
|
---|
30 | </itemizedlist>
|
---|
31 |
|
---|
32 | </appendix>
|
---|