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