[4122007] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[4122007] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[4afc2603] | 8 | <sect1 id="beyond" xreflabel="Going Beyond BLFS">
|
---|
[8b354833] | 9 | <?dbhtml filename="beyond.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info>
|
---|
| 12 | <othername>$LastChangedBy$</othername>
|
---|
| 13 | <date>$Date$</date>
|
---|
| 14 | </sect1info>
|
---|
| 15 |
|
---|
| 16 | <title>Going Beyond BLFS</title>
|
---|
| 17 |
|
---|
| 18 | <para>The packages that are installed in this book are only the tip of the
|
---|
[24ca7aa] | 19 | iceberg. We hope that the experience you gained with the LFS book and
|
---|
| 20 | the BLFS book will give you the background needed to compile, install
|
---|
[8b354833] | 21 | and configure packages that are not included in this book.</para>
|
---|
| 22 |
|
---|
| 23 | <para>When you want to install a package to a location other than
|
---|
[24ca7aa] | 24 | <filename class='directory'>/</filename>, or
|
---|
[8b354833] | 25 | <filename class='directory'>/usr</filename>, you are installing
|
---|
| 26 | outside the default environment settings on most machines. The following
|
---|
| 27 | examples should assist you in determining how to correct this situation.
|
---|
| 28 | The examples cover the complete range of settings that may need
|
---|
| 29 | updating, but they are not all needed in every situation.</para>
|
---|
| 30 |
|
---|
| 31 | <itemizedlist>
|
---|
| 32 | <listitem>
|
---|
| 33 | <para>Expand the <envar>PATH</envar> to include
|
---|
| 34 | <filename class='directory'>$PREFIX/bin</filename>.</para>
|
---|
| 35 | </listitem>
|
---|
| 36 | <listitem>
|
---|
[24ca7aa] | 37 | <para>Expand the <envar>PATH</envar> for
|
---|
[8b354833] | 38 | <systemitem class="username">root</systemitem> to include
|
---|
| 39 | <filename class='directory'>$PREFIX/sbin</filename>.</para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Add <filename class='directory'>$PREFIX/lib</filename>
|
---|
| 43 | to <filename>/etc/ld.so.conf</filename> or expand
|
---|
[4afc2603] | 44 | <envar>LD_LIBRARY_PATH</envar> to include it. Before using the latter
|
---|
[506a625] | 45 | option, check out <ulink
|
---|
| 46 | url="http://xahlee.org/UnixResource_dir/_/ldpath.html"/>.
|
---|
[4afc2603] | 47 | If you modify <filename>/etc/ld.so.conf</filename>, remember to update
|
---|
| 48 | <filename>/etc/ld.so.cache</filename> by executing
|
---|
| 49 | <command>ldconfig</command> as the
|
---|
| 50 | <systemitem class="username">root</systemitem> user.</para>
|
---|
[8b354833] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Add <filename class='directory'>$PREFIX/man</filename>
|
---|
[58c6057] | 54 | to <filename>/etc/man_db.conf</filename> or expand
|
---|
[4afc2603] | 55 | <envar>MANPATH</envar>.</para>
|
---|
[8b354833] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Add <filename class='directory'>$PREFIX/info</filename>
|
---|
| 59 | to <envar>INFOPATH</envar>.</para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[4afc2603] | 62 | <para>Add <filename class='directory'>$PREFIX/lib/pkgconfig</filename>
|
---|
| 63 | to <envar>PKG_CONFIG_PATH</envar>. Some packages are now installing
|
---|
| 64 | <filename class='extension'>.pc</filename> files in
|
---|
| 65 | <filename class='directory'>$PREFIX/share/pkgconfig</filename>, so you may
|
---|
| 66 | have to include this directory also.</para>
|
---|
[8b354833] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[24ca7aa] | 69 | <para>Add <filename class='directory'>$PREFIX/include</filename> to
|
---|
| 70 | <envar>CPPFLAGS</envar> when compiling packages that depend on
|
---|
[8b354833] | 71 | the package you installed.</para>
|
---|
| 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
| 75 | <para>If you are in search of a package that is not in the book, the following
|
---|
[4afc2603] | 76 | are different ways you can search for the desired package.</para>
|
---|
[8b354833] | 77 |
|
---|
| 78 | <itemizedlist>
|
---|
| 79 | <listitem>
|
---|
| 80 | <para>If you know the name of the package, then search FreshMeat for
|
---|
| 81 | it at <ulink url="http://freshmeat.net/"/>. Also search Google at
|
---|
[4afc2603] | 82 | <ulink url="http://google.com/"/>. Sometimes a search for the
|
---|
| 83 | <filename class='extension'>rpm</filename> at
|
---|
| 84 | <ulink url="http://rpmfind.net/"/> or the
|
---|
| 85 | <filename class='extension'>deb</filename> at
|
---|
| 86 | <ulink url="http://www.debian.org/distrib/packages#search_packages"/> can
|
---|
| 87 | also lead to a link to the package.</para>
|
---|
[8b354833] | 88 | </listitem>
|
---|
| 89 | <listitem>
|
---|
[24ca7aa] | 90 | <para>If you know the name of the executable, but not the package
|
---|
[4afc2603] | 91 | that the executable belongs to, first try a Google search with the name
|
---|
| 92 | of the executable. If the results are overwhelming, try searching for the
|
---|
| 93 | given executable in the Debian repository at <ulink
|
---|
| 94 | url="http://www.debian.org/distrib/packages#search_contents"/>.</para>
|
---|
[8b354833] | 95 | </listitem>
|
---|
| 96 | </itemizedlist>
|
---|
| 97 |
|
---|
| 98 | <para>Some general hints on handling new packages:</para>
|
---|
| 99 |
|
---|
| 100 | <itemizedlist>
|
---|
| 101 | <listitem>
|
---|
| 102 | <para>Many of the newer packages follow the <command>./configure
|
---|
| 103 | && make && make install</command> process.
|
---|
[24ca7aa] | 104 | Help on the options accepted by configure can be obtained via the
|
---|
[8b354833] | 105 | command <command>./configure --help</command>.</para>
|
---|
| 106 | </listitem>
|
---|
| 107 | <listitem>
|
---|
| 108 | <para>Most of the packages contain documentation on compiling and
|
---|
| 109 | installing the package. Some of the documents are excellent, some not so
|
---|
[4afc2603] | 110 | excellent. Check out the homepage of the package for any additional and
|
---|
| 111 | updated hints for compiling and configuring the package.</para>
|
---|
[8b354833] | 112 | </listitem>
|
---|
| 113 | <listitem>
|
---|
| 114 | <para>If you are having a problem compiling the package, try
|
---|
[4afc2603] | 115 | searching the LFS archives at
|
---|
[98078a63] | 116 | <ulink url="http://www.&lfs-domainname;/search.html"/> for the error or if
|
---|
[4afc2603] | 117 | that fails, try searching Google. If everything else fails,
|
---|
| 118 | try the blfs-support mailing-list.</para>
|
---|
[8b354833] | 119 | </listitem>
|
---|
| 120 | </itemizedlist>
|
---|
| 121 |
|
---|
| 122 | <tip>
|
---|
[4afc2603] | 123 | <para>If you have found a package that is only available in
|
---|
| 124 | <filename class='extension'>.deb</filename> or
|
---|
| 125 | <filename class='extension'>.rpm</filename>
|
---|
[24ca7aa] | 126 | format, there are two small scripts, <command>rpm2targz</command> and
|
---|
| 127 | <command>deb2targz</command> that are available at
|
---|
| 128 | <ulink url="&downloads-project;/deb2targz.tar.bz2"/> and
|
---|
| 129 | <ulink url="&downloads-project;/rpm2targz.tar.bz2"/> to convert the archives
|
---|
[8b354833] | 130 | into a simple <filename>tar.gz</filename> format.</para>
|
---|
| 131 | </tip>
|
---|
[f45b1953] | 132 |
|
---|
| 133 | </sect1>
|
---|