<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 <!ENTITY % general-entities SYSTEM "../../general.ent">
 %general-entities;
]>

<!--
$LastChangedBy: fernando $
$Date: 2014-12-01 16:20:34 -0500 (Mon, 01 Dec 2014) $
-->

<chapter id="general-genlib">
  <?dbhtml filename="genlib.html"?>

  <title>General Libraries</title>

  <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
  example of a set of libraries is <application>Glibc</application> which is
  installed during the LFS book.  This contains all of the
  <application>C</application> library functions which programs use.</para>

  <para>There are two types of libraries: static and shared.  Shared libraries
  (usually <filename>libXXX.so</filename>) are loaded into memory from the shared
  copy at runtime (hence the name).  Static libraries (<filename>libXXX.a
  </filename>) are actually linked into the program executable file itself, thus
  making the program file larger.  Quite often, you will find both static and
  shared copies of the same library on your system.</para>

  <para>Generally, you only need to install libraries when you are
  installing software that needs the functionality they supply.  In
  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
  details of the program's requirements.</para>

  <para>There are certain libraries which nearly <emphasis>everyone</emphasis>
  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>

  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="apr.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="apr-util.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="clucene.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dbus-glib.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="glib2.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="glibmm.xml"/>
  <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"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="grantlee.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gsl.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="icu.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="js.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="js2.xml"/>
  <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="libarchive.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"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libatomic_ops.xml"/>
  <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"/>
  <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"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgcrypt.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"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgusb.xml"/>
  <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"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libiodbc.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libksba.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="liblinear.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libpaper.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libsigc++.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libsigsegv.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libtasn1.xml"/>
  <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="libzeitgeist.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="lzo.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="mtdev.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="nspr.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="openobex.xml"/>
  <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"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ptlib.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qca.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qjson.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="talloc.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wv.xml"/>
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xapian.xml"/>

</chapter>
