1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="intro-important-beyond">
|
---|
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
|
---|
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
|
---|
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
|
---|
24 | <filename class='directory'>/</filename>, or
|
---|
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>
|
---|
37 | <para>Expand the <envar>PATH</envar> for
|
---|
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
|
---|
44 | <envar>LD_LIBRARY_PATH</envar> to include it. Before using the latter option,
|
---|
45 | check out <ulink url="http://www.visi.com/~barr/ldpath.html"/>. If you
|
---|
46 | modify <filename>/etc/ld.so.conf</filename>, remember to update
|
---|
47 | <filename>/etc/ld.so.cache</filename> by executing <command>ldconfig</command>
|
---|
48 | as the <systemitem class="username">root</systemitem> user.</para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Add <filename class='directory'>$PREFIX/man</filename>
|
---|
52 | to <filename>/etc/man.conf</filename> or expand <envar>MANPATH</envar>.</para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>Add <filename class='directory'>$PREFIX/info</filename>
|
---|
56 | to <envar>INFOPATH</envar>.</para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>Add <filename
|
---|
60 | class='directory'>$PREFIX/lib/pkgconfig</filename> to
|
---|
61 | <envar>PKG_CONFIG_PATH</envar>.</para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>Add <filename class='directory'>$PREFIX/include</filename> to
|
---|
65 | <envar>CPPFLAGS</envar> when compiling packages that depend on
|
---|
66 | the package you installed.</para>
|
---|
67 | </listitem>
|
---|
68 | </itemizedlist>
|
---|
69 |
|
---|
70 | <para>If you are in search of a package that is not in the book, the following
|
---|
71 | are different ways you can search for the concerned package.</para>
|
---|
72 |
|
---|
73 | <itemizedlist>
|
---|
74 | <listitem>
|
---|
75 | <para>If you know the name of the package, then search FreshMeat for
|
---|
76 | it at <ulink url="http://freshmeat.net/"/>. Also search Google at
|
---|
77 | <ulink url="http://google.com/"/>. Sometimes a search for the rpm at
|
---|
78 | <ulink url="http://rpmfind.net/"/> or the deb at
|
---|
79 | <ulink url="http://www.debian.org/distrib/packages#search_packages"/> can also
|
---|
80 | lead to a link to the package.</para>
|
---|
81 | </listitem>
|
---|
82 | <listitem>
|
---|
83 | <para>If you know the name of the executable, but not the package
|
---|
84 | that the executable belongs to, first try a google search with the name of the
|
---|
85 | executable. If the results are overwhelming, try searching for the given
|
---|
86 | executable in the Debian repository at
|
---|
87 | <ulink url="http://www.debian.org/distrib/packages#search_contents"/>.</para>
|
---|
88 | </listitem>
|
---|
89 | </itemizedlist>
|
---|
90 |
|
---|
91 | <para>Some general hints on handling new packages:</para>
|
---|
92 |
|
---|
93 | <itemizedlist>
|
---|
94 | <listitem>
|
---|
95 | <para>Many of the newer packages follow the <command>./configure
|
---|
96 | && make && make install</command> process.
|
---|
97 | Help on the options accepted by configure can be obtained via the
|
---|
98 | command <command>./configure --help</command>.</para>
|
---|
99 | </listitem>
|
---|
100 | <listitem>
|
---|
101 | <para>Most of the packages contain documentation on compiling and
|
---|
102 | installing the package. Some of the documents are excellent, some not so
|
---|
103 | excellent. Check out the homepage of the package for any additional and updated
|
---|
104 | hints for compiling and configuring the package.</para>
|
---|
105 | </listitem>
|
---|
106 | <listitem>
|
---|
107 | <para>If you are having a problem compiling the package, try
|
---|
108 | searching the lfs archives at <ulink url="http://search.linuxfromscratch.org/"/>
|
---|
109 | for the error or if that fails try searching Google. If everything else fails,
|
---|
110 | try the blfs-support mailing-list/news-group.</para>
|
---|
111 | </listitem>
|
---|
112 | </itemizedlist>
|
---|
113 |
|
---|
114 | <tip>
|
---|
115 | <para>If you have found a package that is only available in .deb or .rpm
|
---|
116 | format, there are two small scripts, <command>rpm2targz</command> and
|
---|
117 | <command>deb2targz</command> that are available at
|
---|
118 | <ulink url="&downloads-project;/deb2targz.tar.bz2"/> and
|
---|
119 | <ulink url="&downloads-project;/rpm2targz.tar.bz2"/> to convert the archives
|
---|
120 | into a simple <filename>tar.gz</filename> format.</para>
|
---|
121 | </tip>
|
---|
122 |
|
---|
123 | </sect1>
|
---|