[ec4b257] | 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
|
---|
[e68cc1c] | 6 | <filename class='directory'>/</filename>, or <filename class='directory'>/usr</filename>, you are installing
|
---|
[2be0e0d] | 7 | outside the default environment settings on most machines. The following
|
---|
[ec4b257] | 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>
|
---|
[e68cc1c] | 13 | <listitem><para>Expand the <envar>PATH</envar> to include
|
---|
[93b64483] | 14 | <filename class='directory'>$PREFIX/bin</filename>.</para></listitem>
|
---|
[e68cc1c] | 15 | <listitem><para>Expand the <envar>PATH</envar> for root to include
|
---|
[93b64483] | 16 | <filename class='directory'>$PREFIX/sbin</filename>.</para></listitem>
|
---|
[45e4bc5] | 17 | <listitem><para>Add <filename class='directory'>$PREFIX/lib</filename>
|
---|
[e68cc1c] | 18 | to <filename>/etc/ld.so.conf</filename> or expand
|
---|
[39f01ca] | 19 | <envar>LD_LIBRARY_PATH</envar> to include it. Before using the latter option,
|
---|
[b394e5f7] | 20 | check out <ulink url="http://www.visi.com/~barr/ldpath.html"/>. If you
|
---|
| 21 | modify <filename>/etc/ld.so.conf</filename> remember to update
|
---|
| 22 | <filename>/etc/ld.so.cache</filename> by executing <command>ldconfig</command>.</para></listitem>
|
---|
[e68cc1c] | 23 | <listitem><para>Add <filename class='directory'>$PREFIX/man</filename>
|
---|
| 24 | to <filename>/etc/man.conf</filename> or expand <envar>MANPATH</envar>.</para></listitem>
|
---|
[93b64483] | 25 | <listitem><para>Add <filename class='directory'>$PREFIX/info</filename>
|
---|
[e68cc1c] | 26 | to <envar>INFOPATH</envar>.</para></listitem>
|
---|
| 27 | <listitem><para>Add <filename
|
---|
| 28 | class='directory'>$PREFIX/lib/pkgconfig</filename> to
|
---|
| 29 | <envar>PKG_CONFIG_PATH</envar>.</para></listitem>
|
---|
| 30 | <listitem><para>Add <filename
|
---|
| 31 | class='directory'>$PREFIX/include</filename> to <envar>CPPFLAGS</envar> when compiling packages
|
---|
[ec4b257] | 32 | that depend on the package you installed.</para></listitem>
|
---|
| 33 | </itemizedlist>
|
---|
| 34 |
|
---|
| 35 | </appendix>
|
---|