2004-06-13 06:56:28 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-13 06:56:28 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
2005-05-31 00:32:59 +08:00
|
|
|
]>
|
2004-06-13 06:56:28 +08:00
|
|
|
|
2007-01-19 03:38:19 +08:00
|
|
|
<!--
|
|
|
|
$LastChangedBy$
|
|
|
|
$Date$
|
|
|
|
-->
|
|
|
|
|
2002-07-08 04:28:42 +08:00
|
|
|
<chapter id="general-genlib">
|
2005-05-01 17:51:42 +08:00
|
|
|
<?dbhtml filename="genlib.html"?>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
2005-05-01 17:51:42 +08:00
|
|
|
<title>General Libraries</title>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
2005-05-01 17:51:42 +08:00
|
|
|
<para>Libraries contain code which is often required by more than
|
|
|
|
one program. This has the advantage that each program doesn't need to
|
|
|
|
duplicate code (and risk introducing bugs), it just has to call
|
|
|
|
functions from the libraries installed on the system. The most obvious
|
2005-05-31 05:33:35 +08:00
|
|
|
example of a set of libraries is <application>Glibc</application> which is
|
|
|
|
installed during the LFS book. This contains all of the
|
2005-05-01 17:51:42 +08:00
|
|
|
<application>C</application> library functions which programs use.</para>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
2005-05-31 05:33:35 +08:00
|
|
|
<para>There are two types of libraries: static and shared. Shared libraries
|
2005-05-01 17:51:42 +08:00
|
|
|
(usually <filename>libXXX.so</filename>) are loaded into memory from the shared
|
|
|
|
copy at runtime (hence the name). Static libraries (<filename>libXXX.a
|
2005-05-31 05:33:35 +08:00
|
|
|
</filename>) are actually linked into the program executable file itself, thus
|
|
|
|
making the program file larger. Quite often, you will find both static and
|
2005-05-01 17:51:42 +08:00
|
|
|
shared copies of the same library on your system.</para>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
2005-05-01 17:51:42 +08:00
|
|
|
<para>Generally, you only need to install libraries when you are
|
|
|
|
installing software that needs the functionality they supply. In
|
2005-05-31 05:33:35 +08:00
|
|
|
the BLFS book, each package is presented with a list of
|
|
|
|
(known) dependencies. Thus, you can figure out which libraries you need to
|
|
|
|
have before installing that program. If you are installing something without
|
|
|
|
using BLFS instructions, usually the <filename>README</filename> or
|
|
|
|
<filename>INSTALL</filename> file will contain
|
2005-05-01 17:51:42 +08:00
|
|
|
details of the program's requirements.</para>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
|
|
|
<para>There are certain libraries which nearly <emphasis>everyone</emphasis>
|
2012-12-20 03:57:20 +08:00
|
|
|
will need at some point. In this chapter these and some others are listed and
|
|
|
|
it is explained why you may want to install them.</para>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
2016-06-04 12:19:32 +08:00
|
|
|
<!-- systemd only -->
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="appstream-glib.xml"/>
|
|
|
|
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="apr.xml"/>
|
2013-08-12 02:48:00 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="apr-util.xml"/>
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="aspell.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="boost.xml"/>
|
2013-10-17 20:18:51 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="clucene.xml"/>
|
2013-07-15 06:46:33 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dbus-glib.xml"/>
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="enchant.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="exempi.xml"/>
|
2016-06-04 12:19:32 +08:00
|
|
|
|
|
|
|
<!-- systemd only -->
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gcab.xml"/>
|
|
|
|
|
2010-04-22 02:48:34 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="glib2.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="glibmm.xml"/>
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gmime.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gobject-introspection.xml"/>
|
2016-07-12 13:36:30 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="grantlee.xml"/>
|
2012-03-31 22:06:29 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gsl.xml"/>
|
2010-04-22 02:48:34 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="icu.xml"/>
|
2013-08-12 02:48:00 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="js.xml"/>
|
2014-04-01 02:26:05 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="js2.xml"/>
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="json-c.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="json-glib.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="keyutils.xml"/>
|
2013-08-12 02:48:00 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libarchive.xml"/>
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libassuan.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libatasmart.xml"/>
|
2010-10-17 22:20:45 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libatomic_ops.xml"/>
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libcroco.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libdaemon.xml"/>
|
2016-06-04 12:19:32 +08:00
|
|
|
<!--
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libdbusmenuqt.xml"/>
|
2016-06-04 12:19:32 +08:00
|
|
|
-->
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libesmtp.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libffi.xml"/>
|
2010-04-22 02:48:34 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgcrypt.xml"/>
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgpg-error.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgsf.xml"/>
|
2015-06-29 09:36:57 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgudev.xml"/>
|
2013-03-16 20:11:58 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgusb.xml"/>
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libical.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libidn.xml"/>
|
2013-08-12 02:48:00 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libiodbc.xml"/>
|
2010-04-22 02:48:34 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libksba.xml"/>
|
2013-12-09 20:00:04 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="liblinear.xml"/>
|
2016-06-04 12:19:32 +08:00
|
|
|
|
|
|
|
<!-- systemd only -->
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libmbim.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libnfsidmap.xml"/>
|
|
|
|
|
2014-08-28 22:44:20 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libpaper.xml"/>
|
2016-06-04 12:19:32 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libqmi.xml"/>
|
|
|
|
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libsigc++.xml"/>
|
2014-08-29 01:04:20 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libsigsegv.xml"/>
|
2015-07-16 03:09:33 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libstatgrab.xml"/>
|
2010-04-22 02:48:34 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libtasn1.xml"/>
|
2016-01-14 00:25:50 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libunique.xml"/>
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libunistring.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libusb.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libusb-compat.xml"/>
|
2015-11-03 10:11:07 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libxkbcommon.xml"/>
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libxml2.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libxslt.xml"/>
|
2016-06-04 12:19:32 +08:00
|
|
|
|
|
|
|
<!-- systemd only -->
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libzeitgeist.xml"/>
|
|
|
|
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="lzo.xml"/>
|
2012-08-14 20:47:55 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="mtdev.xml"/>
|
2015-04-29 05:11:41 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="npth.xml"/>
|
2010-04-22 02:48:34 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="nspr.xml"/>
|
2012-07-06 19:09:54 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="openobex.xml"/>
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pcre.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="popt.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pth.xml"/>
|
2010-04-22 02:48:34 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ptlib.xml"/>
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qca.xml"/>
|
2016-06-08 10:30:12 +08:00
|
|
|
<!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qjson.xml"/>-->
|
2011-01-24 06:58:10 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="talloc.xml"/>
|
2015-10-29 12:11:00 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wayland.xml"/>
|
2016-06-13 10:46:31 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wayland-protocols.xml"/>
|
2010-10-24 09:44:50 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wv.xml"/>
|
2014-04-17 17:42:57 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xapian.xml"/>
|
2004-06-13 06:56:28 +08:00
|
|
|
|
2016-06-04 12:19:32 +08:00
|
|
|
<!-- systemd only -->
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="yaml.xml"/>
|
2002-07-08 04:28:42 +08:00
|
|
|
</chapter>
|