blob: fca1a5640c51023ea5060562d70be978c3d86231 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
<sect2>
<title>Configuring Dynamic Loader</title>
<para>
By default the dynamic loader searches a few default paths for dynamic
libraries, so there normally isn't a need for the
<filename>/etc/ld.so.conf</filename> file unless the system has extra
directories in which a user wants the system to search for paths. The
<filename class="directory">/usr/local/lib</filename> directory isn't
searched through for dynamic libraries by default, so we want to add
this path so when a user installs software he won't be suprised by them not
running for some reason.
</para>
<para>
Create a new file <filename>/etc/ld.so.conf</filename> by running the
following:
</para>
<literallayout>
<userinput>cat > /etc/ld.so.conf << "EOF"</userinput>
# Begin /etc/ld.so.conf
/lib
/usr/lib
/usr/local/lib
# End /etc/ld.so.conf
<userinput>EOF</userinput>
</literallayout>
<para>
Although it's not necessary to add the
<filename class="directory">/lib</filename> and
<filename class="directory">/usr/lib</filename> directories it doesn't
hurt. This way it can be seen right away what's being searched and a user
doesn't have
to remeber the default search paths if he doesn't want to.
</para>
</sect2>
|