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 | <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 | <!-- systemd only -->
|
---|
50 | <!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="appstream-glib.xml"/>-->
|
---|
51 |
|
---|
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 |
|
---|
65 | <!-- systemd only -->
|
---|
66 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gcab.xml"/> -->
|
---|
67 |
|
---|
68 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="glib2.xml"/>
|
---|
69 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="glibmm.xml"/>
|
---|
70 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gmime.xml"/> -->
|
---|
71 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gmime3.xml"/>
|
---|
72 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gobject-introspection.xml"/>
|
---|
73 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="grantlee.xml"/> -->
|
---|
74 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gsl.xml"/>
|
---|
75 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gspell.xml"/>
|
---|
76 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="icu.xml"/>
|
---|
77 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="inih.xml"/>
|
---|
78 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="jansson.xml"/>
|
---|
79 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="js91.xml"/>-->
|
---|
80 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="js102.xml"/>
|
---|
81 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="json-c.xml"/>
|
---|
82 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="json-glib.xml"/>
|
---|
83 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="keyutils.xml"/>
|
---|
84 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libaio.xml"/>
|
---|
85 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libarchive.xml"/>
|
---|
86 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libassuan.xml"/>
|
---|
87 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libatasmart.xml"/>
|
---|
88 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libatomic_ops.xml"/>
|
---|
89 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libblockdev.xml"/>
|
---|
90 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libbytesize.xml"/>
|
---|
91 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libcroco.xml"/>-->
|
---|
92 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libdaemon.xml"/>
|
---|
93 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libdbusmenuqt.xml"/> -->
|
---|
94 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libesmtp.xml"/> -->
|
---|
95 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libffi.xml"/>-->
|
---|
96 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgcrypt.xml"/>
|
---|
97 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgpg-error.xml"/>
|
---|
98 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgrss.xml"/>
|
---|
99 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgsf.xml"/>
|
---|
100 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgudev.xml"/>
|
---|
101 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgusb.xml"/>
|
---|
102 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libical.xml"/>
|
---|
103 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libidn.xml"/>
|
---|
104 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libidn2.xml"/>
|
---|
105 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libiodbc.xml"/>
|
---|
106 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libksba.xml"/>
|
---|
107 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="liblinear.xml"/>
|
---|
108 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libmbim.xml"/>
|
---|
109 |
|
---|
110 | <!-- systemd only -->
|
---|
111 | <!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libnfsidmap.xml"/>-->
|
---|
112 |
|
---|
113 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libpaper.xml"/>
|
---|
114 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libportal.xml"/>
|
---|
115 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libptytty.xml"/>
|
---|
116 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libqalculate.xml"/>
|
---|
117 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libqmi.xml"/>
|
---|
118 |
|
---|
119 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libseccomp.xml"/>
|
---|
120 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libsigc++.xml"/>
|
---|
121 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libsigc3.xml"/>-->
|
---|
122 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libsigsegv.xml"/>
|
---|
123 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libssh2.xml"/>
|
---|
124 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libstatgrab.xml"/>
|
---|
125 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libtasn1.xml"/>
|
---|
126 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libuninameslist.xml"/> -->
|
---|
127 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libunique.xml"/>
|
---|
128 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libunistring.xml"/>
|
---|
129 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libunwind.xml"/>
|
---|
130 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="liburcu.xml"/>
|
---|
131 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libusb.xml"/>
|
---|
132 | <!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libusb-compat.xml"/>-->
|
---|
133 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libuv.xml"/>
|
---|
134 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libxkbcommon.xml"/>
|
---|
135 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libxml2.xml"/>
|
---|
136 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libxslt.xml"/>
|
---|
137 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libwacom.xml"/>
|
---|
138 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libwpe.xml"/>
|
---|
139 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libyaml.xml"/>
|
---|
140 |
|
---|
141 | <!-- systemd only -->
|
---|
142 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libzeitgeist.xml"/> -->
|
---|
143 |
|
---|
144 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="lzo.xml"/>
|
---|
145 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="mtdev.xml"/>
|
---|
146 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="nodejs.xml"/>
|
---|
147 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="npth.xml"/>
|
---|
148 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="nspr.xml"/>
|
---|
149 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="openobex.xml"/> -->
|
---|
150 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pcre.xml"/>
|
---|
151 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pcre2.xml"/>
|
---|
152 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="popt.xml"/>
|
---|
153 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pth.xml"/>
|
---|
154 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ptlib.xml"/> -->
|
---|
155 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qca.xml"/>
|
---|
156 | <!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qjson.xml"/>-->
|
---|
157 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="talloc.xml"/>
|
---|
158 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="telepathy-glib.xml"/>
|
---|
159 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="uchardet.xml"/>
|
---|
160 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="umockdev.xml"/>
|
---|
161 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wayland.xml"/>
|
---|
162 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wayland-protocols.xml"/>
|
---|
163 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wpebackend-fdo.xml"/>
|
---|
164 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wv.xml"/>
|
---|
165 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xapian.xml"/>
|
---|
166 |
|
---|
167 | </chapter>
|
---|