[4122007] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 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 | <sect1 id="intro-important-beyond">
|
---|
[a0f03b0] | 9 | <sect1info>
|
---|
[5cd0959d] | 10 | <othername>$LastChangedBy$</othername>
|
---|
| 11 | <date>$Date$</date>
|
---|
[a0f03b0] | 12 | </sect1info>
|
---|
[71e06e23] | 13 | <?dbhtml filename="beyond.html"?>
|
---|
[acfc391] | 14 | <title>Going Beyond <acronym>BLFS</acronym></title>
|
---|
[f45b1953] | 15 |
|
---|
[d23a555] | 16 | <para>The packages that are installed in this book are only the tip of the
|
---|
[acfc391] | 17 | iceberg. We hope that the experience you gained with the <acronym>LFS</acronym>
|
---|
| 18 | book and the <acronym>BLFS</acronym> book will give you the background needed
|
---|
| 19 | to compile, install and configure packages that are not included in this book.
|
---|
| 20 | </para>
|
---|
[d23a555] | 21 |
|
---|
[b5ea3492] | 22 | <para>When you want to install a package to a location other than
|
---|
| 23 | <filename class='directory'>/</filename>, or <filename class='directory'>/usr</filename>, you are installing
|
---|
| 24 | outside the default environment settings on most machines. The following
|
---|
| 25 | examples should assist you in determining how to correct this situation.
|
---|
| 26 | The examples cover the complete range of settings that may need
|
---|
| 27 | updating, but they are not all needed in every situation.</para>
|
---|
| 28 |
|
---|
| 29 | <itemizedlist>
|
---|
| 30 | <listitem><para>Expand the <envar>PATH</envar> to include
|
---|
| 31 | <filename class='directory'>$PREFIX/bin</filename>.</para></listitem>
|
---|
| 32 | <listitem><para>Expand the <envar>PATH</envar> for root to include
|
---|
| 33 | <filename class='directory'>$PREFIX/sbin</filename>.</para></listitem>
|
---|
| 34 | <listitem><para>Add <filename class='directory'>$PREFIX/lib</filename>
|
---|
| 35 | to <filename>/etc/ld.so.conf</filename> or expand
|
---|
| 36 | <envar>LD_LIBRARY_PATH</envar> to include it. Before using the latter option,
|
---|
| 37 | check out <ulink url="http://www.visi.com/~barr/ldpath.html"/>. If you
|
---|
| 38 | modify <filename>/etc/ld.so.conf</filename> remember to update
|
---|
| 39 | <filename>/etc/ld.so.cache</filename> by executing <command>ldconfig</command>.</para></listitem>
|
---|
| 40 | <listitem><para>Add <filename class='directory'>$PREFIX/man</filename>
|
---|
| 41 | to <filename>/etc/man.conf</filename> or expand <envar>MANPATH</envar>.</para></listitem>
|
---|
| 42 | <listitem><para>Add <filename class='directory'>$PREFIX/info</filename>
|
---|
| 43 | to <envar>INFOPATH</envar>.</para></listitem>
|
---|
| 44 | <listitem><para>Add <filename
|
---|
| 45 | class='directory'>$PREFIX/lib/pkgconfig</filename> to
|
---|
| 46 | <envar>PKG_CONFIG_PATH</envar>.</para></listitem>
|
---|
| 47 | <listitem><para>Add <filename
|
---|
| 48 | class='directory'>$PREFIX/include</filename> to <envar>CPPFLAGS</envar> when compiling packages
|
---|
| 49 | that depend on the package you installed.</para></listitem>
|
---|
| 50 | </itemizedlist>
|
---|
[6474611] | 51 |
|
---|
[d23a555] | 52 | <para>If you are in search of a package that is not in the book, the following
|
---|
| 53 | are different ways you can search for the concerned package.</para>
|
---|
| 54 |
|
---|
| 55 | <itemizedlist>
|
---|
| 56 |
|
---|
| 57 | <listitem><para>If you know the name of the package, then search FreshMeat for
|
---|
[2537aba] | 58 | at <ulink url="http://freshmeat.net/"/>. Also search Google at
|
---|
[d23a555] | 59 | <ulink url="http://google.com/"/>. Sometimes a search for the rpm at
|
---|
| 60 | <ulink url="http://rpmfind.net/"/> or the deb at
|
---|
| 61 | <ulink url="http://www.debian.org/distrib/packages#search_packages"/> can also
|
---|
| 62 | lead to the website for the package.</para></listitem>
|
---|
| 63 |
|
---|
[acfc391] | 64 | <listitem><para>If you know the name of the executable, but not the package
|
---|
| 65 | that the executable belongs to, first try a google search with the name of the
|
---|
| 66 | executable. If the results are overwhelming, try searching for the given
|
---|
[a4be499] | 67 | executable in the Debian repository at
|
---|
[d23a555] | 68 | <ulink url="http://www.debian.org/distrib/packages#search_contents"/>.
|
---|
| 69 | </para></listitem>
|
---|
| 70 |
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
| 73 | <para>Some general hints on handling new packages:</para>
|
---|
| 74 |
|
---|
| 75 | <itemizedlist>
|
---|
| 76 |
|
---|
| 77 | <listitem><para>Many of the newer packages follow the <command>./configure
|
---|
[2537aba] | 78 | && make && make install</command> <emphasis>dance</emphasis>
|
---|
[acfc391] | 79 | routine. Help on the options accepted by configure can be obtained via the
|
---|
| 80 | command <command>./configure --help</command>.</para></listitem>
|
---|
[d23a555] | 81 |
|
---|
| 82 | <listitem><para>Most of the packages contain documentation on compiling and
|
---|
| 83 | installing the package. Some of the documents are excellent, some not so
|
---|
| 84 | excellent. Check out the homepage of the package for any additional and updated
|
---|
| 85 | hints for compiling and configuring the package.</para></listitem>
|
---|
| 86 |
|
---|
| 87 | <listitem><para>If you are having a problem compiling the package, try
|
---|
| 88 | searching the lfs archives at <ulink url="http://search.linuxfromscratch.org/"/>
|
---|
| 89 | for the error or if that fails try searching google. If everything else fails,
|
---|
| 90 | try the blfs support mailing-list/news-server.</para></listitem>
|
---|
| 91 |
|
---|
| 92 | </itemizedlist>
|
---|
| 93 |
|
---|
[563bc92] | 94 | <tip><para>If you have found a package that is only available in .deb or .rpm
|
---|
| 95 | format, there are two small scripts rpm2targz and deb2targz that are available
|
---|
[3e2171ee] | 96 | at <ulink url="&downloads-project;/deb2targz.tar.bz2"/> and <ulink
|
---|
| 97 | url="&downloads-project;/rpm2targz.tar.bz2"/> to convert the archives into a
|
---|
[563bc92] | 98 | simple tar.gz format.</para></tip>
|
---|
[f45b1953] | 99 |
|
---|
| 100 | </sect1>
|
---|