[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[f45b1953] | 8 | <chapter id="general-genlib">
|
---|
[7f72cbf] | 9 | <?dbhtml filename="genlib.html"?>
|
---|
[f45b1953] | 10 | <title>General Libraries</title>
|
---|
| 11 |
|
---|
| 12 | <para>Libraries contain code which is often required by more than
|
---|
| 13 | one program. This has the advantage that each program doesn't need to
|
---|
| 14 | duplicate code (and risk introducing bugs), it just has to call
|
---|
| 15 | functions from the libraries installed on the system. The most obvious
|
---|
[e1d7dec] | 16 | example of a set of libraries is <application>glibc</application> which is
|
---|
| 17 | installed during the <acronym>LFS</acronym> book. This contains all of
|
---|
| 18 | the <application>C</application> library functions which programs use.</para>
|
---|
[f45b1953] | 19 |
|
---|
[1ea79a1] | 20 | <para>There are two types of libraries: static and shared. Shared libraries
|
---|
[e1d7dec] | 21 | (usually <filename>libXXX.so</filename>) are loaded into memory from the shared
|
---|
| 22 | copy at runtime (hence the name). Static libraries (<filename>libXXX.a
|
---|
| 23 | </filename>) are actually linked into the program executable file itself, thus
|
---|
| 24 | making the program file larger. Quite often, you will find both static and
|
---|
| 25 | shared copies of the same library on your system.</para>
|
---|
[f45b1953] | 26 |
|
---|
| 27 | <para>Generally, you only need to install libraries when you are
|
---|
[1ea79a1] | 28 | installing software that needs the functionality they supply. In
|
---|
| 29 | the <acronym>BLFS</acronym> book, each package is presented with a list of (known)
|
---|
[f45b1953] | 30 | dependencies. Thus, you can figure out which libraries you need to have
|
---|
| 31 | before installing that program. If you are installing something without
|
---|
[1ea79a1] | 32 | using <acronym>BLFS</acronym> instructions, usually the <filename>README</filename>
|
---|
| 33 | or <filename>INSTALL</filename> file will contain details of the
|
---|
| 34 | program's requirements.</para>
|
---|
[f45b1953] | 35 |
|
---|
[e1d7dec] | 36 | <para>There are certain libraries which nearly <emphasis>everyone</emphasis>
|
---|
| 37 | will need at some point. In this chapter we list these and some others and
|
---|
| 38 | explain why you may want to install them.</para>
|
---|
[f45b1953] | 39 |
|
---|
[52d29f7] | 40 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="openssl.xml"/>
|
---|
| 41 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="pcre.xml"/>
|
---|
| 42 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="popt.xml"/>
|
---|
| 43 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="slang.xml"/>
|
---|
| 44 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="fam.xml"/>
|
---|
| 45 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libxml.xml"/>
|
---|
| 46 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libxml2.xml"/>
|
---|
| 47 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libxslt.xml"/>
|
---|
| 48 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gmp.xml"/>
|
---|
| 49 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gdbm.xml"/>
|
---|
| 50 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="glib.xml"/>
|
---|
| 51 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="glib2.xml"/>
|
---|
[f1e61413] | 52 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libidl.xml"/>
|
---|
[ce39b28] | 53 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libcroco.xml"/>
|
---|
[c0ce0a4] | 54 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libgsf.xml"/>
|
---|
[89c76830] | 55 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libglade.xml"/>
|
---|
[52d29f7] | 56 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="expat.xml"/>
|
---|
| 57 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libesmtp.xml"/>
|
---|
| 58 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="aspell.xml"/>
|
---|
| 59 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ispell.xml"/>
|
---|
| 60 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="guile.xml"/>
|
---|
| 61 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="slib.xml"/>
|
---|
| 62 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gwrap.xml"/>
|
---|
| 63 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="lzo.xml"/>
|
---|
| 64 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libpcap.xml"/>
|
---|
| 65 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libusb.xml"/>
|
---|
| 66 |
|
---|
[f45b1953] | 67 | </chapter>
|
---|