1 | <sect2>
|
---|
2 | <title>Installation of Bash</title>
|
---|
3 |
|
---|
4 | <para>Before you attempt to install Bash, you have to check to make sure
|
---|
5 | your distribution has the <filename>/usr/lib/libcurses.a</filename> and
|
---|
6 | <filename>/usr/lib/libncurses.a</filename> files. If your host
|
---|
7 | distribution is an LFS system, all files will be present if you followed
|
---|
8 | the instructions of the book version you read exactly.</para>
|
---|
9 |
|
---|
10 | <para>If both of the files are missing, you have to install the Ncurses
|
---|
11 | development package. This package is often called something like
|
---|
12 | <emphasis>ncurses-dev</emphasis> or <emphasis>ncurses-static</emphasis>. If
|
---|
13 | this package is already installed, or you just installed it, check for the
|
---|
14 | two files again. Often the <filename>libcurses.a</filename> file is (still)
|
---|
15 | missing. If so, then create <filename>libcurses.a</filename> as a symlink
|
---|
16 | by running the following commands as user root:</para>
|
---|
17 |
|
---|
18 | <para><screen><userinput>ln -s libncurses.a /usr/lib/libcurses.a</userinput></screen></para>
|
---|
19 |
|
---|
20 | <para>Now we can continue. Install Bash by running the following
|
---|
21 | commands:</para>
|
---|
22 |
|
---|
23 | <para><screen><userinput>./configure --enable-static-link \
|
---|
24 | --prefix=$LFS/static --with-curses &&
|
---|
25 | make &&
|
---|
26 | make install</userinput></screen></para>
|
---|
27 |
|
---|
28 | <para>If the <userinput>make install</userinput> phase ends with something
|
---|
29 | along the lines of this:</para>
|
---|
30 |
|
---|
31 | <blockquote><screen>install-info: unknown option `--dir-file=/mnt/lfs/usr/info/dir'
|
---|
32 | usage: install-info [--version] [--help] [--debug] [--maxwidth=nnn]
|
---|
33 | [--section regexp title] [--infodir=xxx] [--align=nnn]
|
---|
34 | [--calign=nnn] [--quiet] [--menuentry=xxx]
|
---|
35 | [--info-dir=xxx]
|
---|
36 | [--keep-old] [--description=xxx] [--test]
|
---|
37 | [--remove] [--] filename
|
---|
38 | make[1]: *** [install] Error 1
|
---|
39 | make[1]: Leaving directory `/mnt/lfs/usr/src/bash-&bash-version;/doc'
|
---|
40 | make: [install] Error 2 (ignored)</screen></blockquote>
|
---|
41 |
|
---|
42 | <para>then that means that you are probably using Debian-2.2 (potato), and
|
---|
43 | that you have an old version of the texinfo package. This error is not
|
---|
44 | severe by any means: the info pages will be installed when we recompile bash
|
---|
45 | dynamically in Chapter 6, so you can ignore it. It is reported that the
|
---|
46 | current release of Debian (3.0; also known as Woody) doesn't have this
|
---|
47 | problem.</para>
|
---|
48 |
|
---|
49 | </sect2>
|
---|
50 |
|
---|