[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[8e75f8b9] | 6 | ]>
|
---|
[52d29f7] | 7 |
|
---|
[276015d2] | 8 | <!--
|
---|
| 9 | $LastChangedBy$
|
---|
| 10 | $Date$
|
---|
| 11 | -->
|
---|
| 12 |
|
---|
[f45b1953] | 13 | <chapter id="general-genlib">
|
---|
[03735e97] | 14 | <?dbhtml filename="genlib.html"?>
|
---|
[8e75f8b9] | 15 |
|
---|
[03735e97] | 16 | <title>General Libraries</title>
|
---|
[8e75f8b9] | 17 |
|
---|
[03735e97] | 18 | <para>Libraries contain code which is often required by more than
|
---|
| 19 | one program. This has the advantage that each program doesn't need to
|
---|
| 20 | duplicate code (and risk introducing bugs), it just has to call
|
---|
| 21 | functions from the libraries installed on the system. The most obvious
|
---|
[74390482] | 22 | example of a set of libraries is <application>Glibc</application> which is
|
---|
| 23 | installed during the LFS book. This contains all of the
|
---|
[03735e97] | 24 | <application>C</application> library functions which programs use.</para>
|
---|
[8e75f8b9] | 25 |
|
---|
[74390482] | 26 | <para>There are two types of libraries: static and shared. Shared libraries
|
---|
[03735e97] | 27 | (usually <filename>libXXX.so</filename>) are loaded into memory from the shared
|
---|
| 28 | copy at runtime (hence the name). Static libraries (<filename>libXXX.a
|
---|
[74390482] | 29 | </filename>) are actually linked into the program executable file itself, thus
|
---|
| 30 | making the program file larger. Quite often, you will find both static and
|
---|
[03735e97] | 31 | shared copies of the same library on your system.</para>
|
---|
[8e75f8b9] | 32 |
|
---|
[03735e97] | 33 | <para>Generally, you only need to install libraries when you are
|
---|
| 34 | installing software that needs the functionality they supply. In
|
---|
[74390482] | 35 | the BLFS book, each package is presented with a list of
|
---|
| 36 | (known) dependencies. Thus, you can figure out which libraries you need to
|
---|
| 37 | have 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
|
---|
[03735e97] | 40 | details of the program's requirements.</para>
|
---|
[8e75f8b9] | 41 |
|
---|
| 42 | <para>There are certain libraries which nearly <emphasis>everyone</emphasis>
|
---|
[74390482] | 43 | will need at some point. In this chapter we list these and some others and
|
---|
[03735e97] | 44 | explain why you may want to install them.</para>
|
---|
[8e75f8b9] | 45 |
|
---|
[03735e97] | 46 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="pcre.xml"/>
|
---|
| 47 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="popt.xml"/>
|
---|
| 48 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="slang.xml"/>
|
---|
[b7ea972] | 49 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gamin.xml"/>
|
---|
[03735e97] | 50 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libxml2.xml"/>
|
---|
| 51 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libxslt.xml"/>
|
---|
[c2168677] | 52 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libgtkhtml.xml"/>
|
---|
[03735e97] | 53 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gmp.xml"/>
|
---|
| 54 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gdbm.xml"/>
|
---|
| 55 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="glib.xml"/>
|
---|
| 56 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="glib2.xml"/>
|
---|
| 57 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libidl.xml"/>
|
---|
| 58 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libcroco.xml"/>
|
---|
| 59 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libgsf.xml"/>
|
---|
| 60 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libglade.xml"/>
|
---|
| 61 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="expat.xml"/>
|
---|
| 62 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libesmtp.xml"/>
|
---|
| 63 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="aspell.xml"/>
|
---|
| 64 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="slib.xml"/>
|
---|
| 65 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gwrap.xml"/>
|
---|
| 66 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="lzo.xml"/>
|
---|
| 67 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libusb.xml"/>
|
---|
[bbea0be] | 68 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="iso-codes.xml"/>
|
---|
[4ffe8c5] | 69 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gmime.xml"/>
|
---|
[39f916fc] | 70 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libidn.xml"/>
|
---|
[38476a9] | 71 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libdrm.xml"/>
|
---|
[f6f155a] | 72 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="dbus-bindings.xml"/>
|
---|
[2626874] | 73 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libpthread-stubs.xml"/>
|
---|
[eab03ca] | 74 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="pth.xml"/>
|
---|
[a2c5f7d7] | 75 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libassuan.xml"/>
|
---|
[ae0887f] | 76 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libgpg-error.xml"/>
|
---|
[8250d8e] | 77 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libgcrypt.xml"/>
|
---|
[139df56] | 78 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libksba.xml"/>
|
---|
[50d2046] | 79 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mowgli.xml"/>
|
---|
| 80 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mcs.xml"/>
|
---|
[eab03ca] | 81 |
|
---|
[94927cb0] | 82 | <!-- <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libxml.xml"/> -->
|
---|
[f6f155a] | 83 | <!-- <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ispell.xml"/> -->
|
---|
[4ffe8c5] | 84 | <!-- <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="fam.xml"/> -->
|
---|
[52d29f7] | 85 |
|
---|
[f45b1953] | 86 | </chapter>
|
---|