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