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>
|
2005-05-31 05:33:35 +08:00
|
|
|
will need at some point. In this chapter we list these and some others and
|
2005-05-01 17:51:42 +08:00
|
|
|
explain why you may want to install them.</para>
|
2005-05-31 00:32:59 +08:00
|
|
|
|
2005-05-01 17:51:42 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="pcre.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="popt.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="slang.xml"/>
|
2005-10-09 07:03:15 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gamin.xml"/>
|
2005-05-01 17:51:42 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libxml.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libxml2.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libxslt.xml"/>
|
2006-03-07 09:35:34 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libgtkhtml.xml"/>
|
2005-05-01 17:51:42 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gmp.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gdbm.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="glib.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="glib2.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libidl.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libcroco.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libgsf.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libglade.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="expat.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libesmtp.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="aspell.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="slib.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gwrap.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="lzo.xml"/>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libusb.xml"/>
|
2005-10-21 04:55:33 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="iso-codes.xml"/>
|
2005-11-03 14:08:07 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gmime.xml"/>
|
2005-12-30 13:01:26 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libidn.xml"/>
|
2006-09-04 11:15:35 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libdrm.xml"/>
|
2007-07-10 01:07:39 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="dbus-bindings.xml"/>
|
2007-07-10 12:25:26 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libpthread-stubs.xml"/>
|
2007-08-16 07:06:57 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="pth.xml"/>
|
2007-08-16 09:21:29 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libassuan.xml"/>
|
2007-08-16 13:09:28 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libgpg-error.xml"/>
|
2007-08-17 01:55:14 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libgcrypt.xml"/>
|
2007-08-18 07:29:01 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libksba.xml"/>
|
2007-08-16 07:06:57 +08:00
|
|
|
|
2007-07-10 01:07:39 +08:00
|
|
|
<!-- <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ispell.xml"/> -->
|
2005-11-03 14:08:07 +08:00
|
|
|
<!-- <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="fam.xml"/> -->
|
2004-06-13 06:56:28 +08:00
|
|
|
|
2002-07-08 04:28:42 +08:00
|
|
|
</chapter>
|