source: introduction/important/beyond.xml@ 58b66af3

10.0 10.1 11.0 9.0 9.1 ken/refactor-virt lazarus qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 58b66af3 was 58b66af3, checked in by Ken Moffat <ken@…>, 2 years ago

Beyond BLFS - use a working link for openSUSE.

git-svn-id: svn:// af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.7 KB
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
8<sect1 id="beyond" xreflabel="Going Beyond BLFS">
9 <?dbhtml filename="beyond.html"?>
11 <sect1info>
12 <othername>$LastChangedBy$</othername>
13 <date>$Date$</date>
14 </sect1info>
16 <title>Going Beyond BLFS</title>
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>
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>
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/</filename> or expand
44 <envar>LD_LIBRARY_PATH</envar> to include it. Before using the latter
45 option, check out <ulink
46 url=""/>.
47 If you modify <filename>/etc/</filename>, remember to update
48 <filename>/etc/</filename> by executing
49 <command>ldconfig</command> as the
50 <systemitem class="username">root</systemitem> user.</para>
51 </listitem>
52 <listitem>
53 <para>Add <filename class='directory'>$PREFIX/man</filename>
54 to <filename>/etc/man_db.conf</filename> or expand
55 <envar>MANPATH</envar>.</para>
56 </listitem>
57 <listitem>
58 <para>Add <filename class='directory'>$PREFIX/info</filename>
59 to <envar>INFOPATH</envar>.</para>
60 </listitem>
61 <listitem>
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>
67 </listitem>
68 <listitem>
69 <para>Add <filename class='directory'>$PREFIX/include</filename> to
70 <envar>CPPFLAGS</envar> when compiling packages that depend on
71 the package you installed.</para>
72 </listitem>
73 <listitem>
74 <para>Add <filename class='directory'>$PREFIX/lib</filename> to
75 <envar>LDFLAGS</envar> when compiling packages that depend on a library
76 installed by the package.</para>
77 </listitem>
78 </itemizedlist>
80 <para>If you are in search of a package that is not in the book, the following
81 are different ways you can search for the desired package.</para>
83 <itemizedlist>
84 <listitem>
85 <para>If you know the name of the package, then search Freecode for
86 it at <ulink url=""/>. Also search Google at
87 <ulink url=""/>. Sometimes a search for the
88 <filename class='extension'>rpm</filename> at
89 <ulink url=""/> or the
90 <filename class='extension'>deb</filename> at
91 <ulink url=""/> can
92 also lead to a link to the package.</para>
93 </listitem>
94 <listitem>
95 <para>If you know the name of the executable, but not the package
96 that the executable belongs to, first try a Google search with the name
97 of the executable. If the results are overwhelming, try searching for the
98 given executable in the Debian repository at <ulink
99 url=""/>.</para>
100 </listitem>
101 </itemizedlist>
103 <para>Some general hints on handling new packages:</para>
105 <itemizedlist>
106 <listitem>
107 <para>Many of the newer packages follow the <command>./configure
108 &amp;&amp; make &amp;&amp; make install</command> process.
109 Help on the options accepted by configure can be obtained via the
110 command <command>./configure --help</command>.</para>
111 </listitem>
112 <listitem>
113 <para>Most of the packages contain documentation on compiling and
114 installing the package. Some of the documents are excellent, some not so
115 excellent. Check out the homepage of the package for any additional and
116 updated hints for compiling and configuring the package.</para>
117 </listitem>
118 <listitem>
119 <para>If you are having a problem compiling the package, try
120 searching the LFS archives at
121 <ulink url="http://www.&lfs-domainname;/search.html"/> for the error or if
122 that fails, try searching Google. Often, a distribution will have already
123 solved the problem (many of them use development versions of packages, so
124 they see the changes sooner than those of us who normally use stable released
125 versions). But be cautious - all builders tend to carry patches which are no
126 longer necessary, and to have fixes which are only required because of their
127 particular choices in how they build a package. You may have to search
128 deeply to find a fix for the package version you are trying to use, or even
129 to find the package (names are sometimes not what you might expect, e.g.
130 <application>ghostscript</application> often has a prefix or a suffix in its
131 name), but the following notes might help, particularly for those who, like
132 the editors, are trying to build the latest versions and encountering
133 problems:</para>
134 <itemizedlist>
135 <listitem>
136 <para>Arch <ulink url=""/> - enter
137 the package name in the 'Keywords' box, select the package name,
138 select the 'Source Files' field, and then select the
139 <filename>PKGBUILD</filename> entry to see how they build this
140 package.</para>
141 </listitem>
142 <listitem>
143 <para>Debian
144 <ulink url=""/> (use your country's
145 version if there is one) - the source will be in .tar.gz tarballs (either
146 the original upstream <filename class='extension'>.orig</filename> source,
147 or else a <filename>dfsg</filename> containing those parts which comply
148 with debian's free software guidelines) accompanied by versioned .diff.gz
149 or .tar.gz additions. These additions often show how the package is built,
150 and may contain patches. In the .diff.gz versions, any patches create files
151 in <filename class="directory">debian/patches</filename>.</para>
152 </listitem>
153 <listitem>
154 <para>Fedora packages are now most-conveniently accessed by downloading
155 an srpm (source rpm) and using <application>rpm2cpio</application> (see
156 the Tip at the bottom of the page. Go to <ulink
157 url=""/> and then choose
158 which repo you wish to look at - development/rawhide is the latest
159 development, or choose releases for what was shipped in a release,
160 updates for updates to a release, or updates/testing for the latest
161 updates which might work or might have problems.
162 </para>
163 </listitem>
164 <listitem>
165 <para>Gentoo - the mirrors for ebuilds and patches seem to be well-hidden,
166 and they change frequently. Also, if you have found a mirror, you need to
167 know which directory the application has been assigned to. The ebuilds
168 themselves can be found at <ulink url=""/> -
169 use the search field. If there are any patches, a mirror will have them
170 in the <filename class="directory">files/</filename> directory. Depending
171 on your browser, or the mirror, you might need to download the ebuild to
172 be able to read it. Treat the ebuild as a sort of pseudo-code / shell
173 combination - look in particular for <command>sed</command> commands and
174 patches, or hazard a guess at the meanings of the functions such as
175 <command>dodoc</command>.</para>
176 </listitem>
177 <listitem>
178 <para>openSUSE provide a rolling release, some package versions are in
179 <ulink url=""/>
180 but others are in ../update/openSUSE-current/src - the
181 source only seems to be available in source rpms.</para>
182 </listitem>
183 <listitem>
184 <para>Slackware - the official package browser is currently broken. The
185 site at <ulink url=""/> has current and previous
186 versions in their unofficial repository with links to homepages, downloads,
187 and some individual files, particularly the <filename>.SlackBuild</filename>
188 files.</para>
189 </listitem>
190 <listitem>
191 <para>Ubuntu <ulink url=""/> - see the
192 debian notes above.</para>
193 </listitem>
194 </itemizedlist>
195 <para>If everything else fails, try the blfs-support mailing-list.</para>
196 </listitem>
197 </itemizedlist>
199 <tip>
200 <para>If you have found a package that is only available in
201 <filename class='extension'>.deb</filename> or
202 <filename class='extension'>.rpm</filename>
203 format, there are two small scripts, <command>rpm2targz</command> and
204 <command>deb2targz</command> that are available at
205 <ulink url="&downloads-project;/deb2targz.tar.bz2"/> and
206 <ulink url="&downloads-project;/rpm2targz.tar.bz2"/> to convert the archives
207 into a simple <filename>tar.gz</filename> format.</para>
208 <para>You may also find an rpm2cpio script useful. The Perl version in the
209 linux kernel archives at <ulink
210 url=""/>
211 works for most source rpms. The rpm2targz script will use an rpm2cpio script
212 or binary if one is on your path. Note that rpm2cpio will unpack a source
213 rpm in the current directory, giving a tarball, a spec file, and perhaps patches
214 or other files.</para>
215 </tip>
Note: See TracBrowser for help on using the repository browser.