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
|
|
|
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="apr.xml"/>
|
|
|
|
<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"/>
|
|
|
|
<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"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="expat.xml"/>
|
2010-04-22 02:48:34 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gamin.xml"/>
|
|
|
|
<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"/>
|
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"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="iso-codes.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"/>
|
|
|
|
<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"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libdbusmenuqt.xml"/>
|
2010-04-22 02:48:34 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libdrm.xml"/>
|
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="libglade.xml"/>
|
|
|
|
<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"/>
|
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="libidl.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libidn.xml"/>
|
2010-04-22 02:48:34 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libksba.xml"/>
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libsigc++.xml"/>
|
2010-04-22 02:48:34 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libtasn1.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"/>
|
|
|
|
<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"/>
|
|
|
|
<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"/>
|
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"/>
|
2013-04-24 01:04:04 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qjson.xml"/>
|
2013-02-12 02:51:17 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="sbc.xml"/>
|
2012-05-17 00:39:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="slib.xml"/>
|
2011-01-24 06:58:10 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="talloc.xml"/>
|
2010-10-24 09:44:50 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wv.xml"/>
|
2004-06-13 06:56:28 +08:00
|
|
|
|
2002-07-08 04:28:42 +08:00
|
|
|
</chapter>
|