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