1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <!--
|
---|
9 | $LastChangedBy$
|
---|
10 | $Date$
|
---|
11 | -->
|
---|
12 |
|
---|
13 | <chapter id="general-genlib">
|
---|
14 | <?dbhtml filename="genlib.html"?>
|
---|
15 |
|
---|
16 | <title>General Libraries</title>
|
---|
17 |
|
---|
18 | <para>
|
---|
19 | Libraries contain code which is often required by more than
|
---|
20 | one program. This has the advantage that each program doesn't need to
|
---|
21 | duplicate code (and risk introducing bugs), it just has to call
|
---|
22 | functions from the libraries installed on the system. The most obvious
|
---|
23 | example of a set of libraries is <application>Glibc</application> which is
|
---|
24 | installed during the LFS book. This contains all of the
|
---|
25 | <application>C</application> library functions which programs use.
|
---|
26 | </para>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | There are two types of libraries: static and shared. Shared libraries
|
---|
30 | (usually <filename>libXXX.so</filename>) are loaded into memory from the
|
---|
31 | shared copy at runtime (hence the name). Static libraries (<filename>
|
---|
32 | libXXX.a</filename>) are actually linked into the program executable file
|
---|
33 | itself, thus making the program file larger. Quite often, you will find
|
---|
34 | both static and shared copies of the same library on your system.
|
---|
35 | </para>
|
---|
36 |
|
---|
37 | <para>
|
---|
38 | Generally, you only need to install libraries when you are
|
---|
39 | installing software that needs the functionality they supply. In
|
---|
40 | the BLFS book, each package is presented with a list of (known)
|
---|
41 | dependencies. Thus, you can figure out which libraries you need to have
|
---|
42 | before installing that program. If you are installing something without
|
---|
43 | using BLFS instructions, usually the <filename>README</filename> or
|
---|
44 | <filename>INSTALL</filename> file will contain
|
---|
45 | details of the program's requirements.
|
---|
46 | </para>
|
---|
47 |
|
---|
48 | <para>
|
---|
49 | There are certain libraries which nearly <emphasis>everyone</emphasis> will
|
---|
50 | need at some point. In this chapter these and some others are listed and
|
---|
51 | it is explained why you may want to install them.
|
---|
52 | </para>
|
---|
53 |
|
---|
54 | <!-- systemd only -->
|
---|
55 | <!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="appstream-glib.xml"/>-->
|
---|
56 |
|
---|
57 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="apr.xml"/>
|
---|
58 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="apr-util.xml"/>
|
---|
59 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="aspell.xml"/>
|
---|
60 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="boost.xml"/>
|
---|
61 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="brotli.xml"/>
|
---|
62 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="clucene.xml"/>
|
---|
63 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dbus-glib.xml"/>
|
---|
64 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="double-conversion.xml"/>
|
---|
65 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="enchant.xml"/>
|
---|
66 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="exempi.xml"/>
|
---|
67 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="fftw.xml"/>
|
---|
68 |
|
---|
69 | <!-- systemd only -->
|
---|
70 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gcab.xml"/> -->
|
---|
71 |
|
---|
72 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="glib2.xml"/>
|
---|
73 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="glibmm.xml"/>
|
---|
74 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gmime.xml"/>
|
---|
75 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gmime3.xml"/> -->
|
---|
76 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gobject-introspection.xml"/>
|
---|
77 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="grantlee.xml"/>
|
---|
78 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gsl.xml"/>
|
---|
79 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gspell.xml"/>
|
---|
80 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="icu.xml"/>
|
---|
81 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="jansson.xml"/>
|
---|
82 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="js38.xml"/> -->
|
---|
83 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="js52.xml"/> -->
|
---|
84 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="js60.xml"/> -->
|
---|
85 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="js68.xml"/>
|
---|
86 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="json-c.xml"/>
|
---|
87 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="json-glib.xml"/>
|
---|
88 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="keyutils.xml"/>
|
---|
89 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libaio.xml"/>
|
---|
90 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libarchive.xml"/>
|
---|
91 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libassuan.xml"/>
|
---|
92 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libatasmart.xml"/>
|
---|
93 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libatomic_ops.xml"/>
|
---|
94 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libblockdev.xml"/>
|
---|
95 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libbytesize.xml"/>
|
---|
96 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libcroco.xml"/>-->
|
---|
97 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libdaemon.xml"/>
|
---|
98 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libdbusmenuqt.xml"/> -->
|
---|
99 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libesmtp.xml"/> -->
|
---|
100 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libffi.xml"/>-->
|
---|
101 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgcrypt.xml"/>
|
---|
102 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgpg-error.xml"/>
|
---|
103 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgrss.xml"/>
|
---|
104 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgsf.xml"/>
|
---|
105 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgudev.xml"/>
|
---|
106 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgusb.xml"/>
|
---|
107 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libical.xml"/>
|
---|
108 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libidn.xml"/>
|
---|
109 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libidn2.xml"/>
|
---|
110 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libiodbc.xml"/>
|
---|
111 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libksba.xml"/>
|
---|
112 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="liblinear.xml"/>
|
---|
113 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libmbim.xml"/>
|
---|
114 |
|
---|
115 | <!-- systemd only -->
|
---|
116 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libnfsidmap.xml"/>
|
---|
117 |
|
---|
118 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libpaper.xml"/>
|
---|
119 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libqmi.xml"/>
|
---|
120 |
|
---|
121 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libseccomp.xml"/>
|
---|
122 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libsigc++.xml"/>
|
---|
123 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libsigsegv.xml"/>
|
---|
124 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libssh2.xml"/>
|
---|
125 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libstatgrab.xml"/>
|
---|
126 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libtasn1.xml"/>
|
---|
127 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libuninameslist.xml"/>
|
---|
128 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libunique.xml"/>
|
---|
129 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libunistring.xml"/>
|
---|
130 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libusb.xml"/>
|
---|
131 | <!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libusb-compat.xml"/>-->
|
---|
132 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libuv.xml"/>
|
---|
133 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libxkbcommon.xml"/>
|
---|
134 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libxml2.xml"/>
|
---|
135 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libxslt.xml"/>
|
---|
136 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libwacom.xml"/>
|
---|
137 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libyaml.xml"/>
|
---|
138 |
|
---|
139 | <!-- systemd only -->
|
---|
140 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libzeitgeist.xml"/> -->
|
---|
141 |
|
---|
142 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="lzo.xml"/>
|
---|
143 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="mtdev.xml"/>
|
---|
144 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="nodejs.xml"/>
|
---|
145 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="npth.xml"/>
|
---|
146 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="nspr.xml"/>
|
---|
147 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="openobex.xml"/> -->
|
---|
148 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pcre.xml"/>
|
---|
149 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pcre2.xml"/>
|
---|
150 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="popt.xml"/>
|
---|
151 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pth.xml"/>
|
---|
152 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ptlib.xml"/>
|
---|
153 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qca.xml"/>
|
---|
154 | <!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qjson.xml"/>-->
|
---|
155 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="talloc.xml"/>
|
---|
156 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="telepathy-glib.xml"/>
|
---|
157 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="uchardet.xml"/>
|
---|
158 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="umockdev.xml"/>
|
---|
159 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wayland.xml"/>
|
---|
160 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wayland-protocols.xml"/>
|
---|
161 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wv.xml"/>
|
---|
162 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xapian.xml"/>
|
---|
163 |
|
---|
164 | </chapter>
|
---|