[f45b1953] | 1 | <chapter id="general-genlib">
|
---|
| 2 | <?dbhtml filename="genlib.html" dir="general"?>
|
---|
| 3 | <title>General Libraries</title>
|
---|
| 4 |
|
---|
| 5 | <para>Libraries contain code which is often required by more than
|
---|
| 6 | one program. This has the advantage that each program doesn't need to
|
---|
| 7 | duplicate code (and risk introducing bugs), it just has to call
|
---|
| 8 | functions from the libraries installed on the system. The most obvious
|
---|
| 9 | example of a set of libraries is glibc which is installed during the LFS
|
---|
| 10 | book. This contains all of the C library functions which programs
|
---|
| 11 | use.</para>
|
---|
| 12 |
|
---|
| 13 | <para>There are two types of library, static and shared. Shared
|
---|
| 14 | libraries (usually libXXX.so) are loaded into memory from the shared
|
---|
| 15 | copy at runtime (hence the name). Static libraries (libXXX.a) are
|
---|
| 16 | actually linked into the program executable file itself, thus making the
|
---|
| 17 | program file larger. Quite often, you will find both static and shared
|
---|
| 18 | copies of the same library on your system.</para>
|
---|
| 19 |
|
---|
| 20 | <para>Generally, you only need to install libraries when you are
|
---|
| 21 | installing software which requires functionality which they supply. In
|
---|
| 22 | the BLFS book, each package is listed with a list of (known)
|
---|
| 23 | dependencies. Thus, you can figure out which libraries you need to have
|
---|
| 24 | before installing that program. If you are installing something without
|
---|
| 25 | using BLFS instructions, usually the <filename>README</filename> or
|
---|
| 26 | <filename>INSTALL</filename> file will contain details of the programs
|
---|
| 27 | requirements.</para>
|
---|
| 28 |
|
---|
| 29 | <para>There are certain libraries which nearly
|
---|
| 30 | <emphasis>everyone</emphasis> will need at some point. In this chapter
|
---|
| 31 | we list these and some others and explain why you may want to install
|
---|
| 32 | them.</para>
|
---|
| 33 |
|
---|
| 34 | &openssl;
|
---|
| 35 | &pcre;
|
---|
| 36 | &popt;
|
---|
| 37 | &slang;
|
---|
| 38 | &libfam;
|
---|
| 39 | &libxml;
|
---|
| 40 | &libxml2;
|
---|
| 41 | &libxslt;
|
---|
[777e407] | 42 | &gmp;
|
---|
| 43 | &gdbm;
|
---|
[16a0b717] | 44 | &GLib;
|
---|
| 45 | &GLib2;
|
---|
[f45b1953] | 46 |
|
---|
| 47 | </chapter>
|
---|