[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Installation of Bash</title>
|
---|
| 3 |
|
---|
[5cce404] | 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
|
---|
[f8217e15] | 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>
|
---|
[5cce404] | 9 |
|
---|
[335838c] | 10 | <para>If both of the files are missing, you have to install the Ncurses
|
---|
[3a6a8dd] | 11 | development package. This package is often called something like
|
---|
[60ed866] | 12 | <emphasis>ncurses-dev</emphasis>. If this package is already installed,
|
---|
[3a6a8dd] | 13 | or you just installed it, check for the two files again. Often the
|
---|
[f8217e15] | 14 | <filename>libcurses.a</filename> file is (still) missing. If so, then
|
---|
| 15 | create <filename>libcurses.a</filename> as a symlink by running the
|
---|
[1438da9] | 16 | following commands as user root:</para>
|
---|
[5cce404] | 17 |
|
---|
[3f12743] | 18 | <para><screen><userinput>ln -s libncurses.a /usr/lib/libcurses.a</userinput></screen></para>
|
---|
[5cce404] | 19 |
|
---|
| 20 | <para>Now we can continue. Install Bash by running the following
|
---|
| 21 | commands:</para>
|
---|
[970f0b3] | 22 |
|
---|
[3f12743] | 23 | <para><screen><userinput>./configure --enable-static-link \
|
---|
[5e2cb65] | 24 | --prefix=$LFS/static --with-curses &&
|
---|
[4d6fc2da] | 25 | make &&
|
---|
[5e2cb65] | 26 | make install</userinput></screen></para>
|
---|
[970f0b3] | 27 |
|
---|
[514f599] | 28 | <para>If the <userinput>make install</userinput> phase ends with something
|
---|
| 29 | along the lines of this:</para>
|
---|
[20ea64e] | 30 |
|
---|
[b822811] | 31 | <blockquote><screen>install-info: unknown option `--dir-file=/mnt/lfs/usr/info/dir'
|
---|
[20ea64e] | 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
|
---|
[513afc2] | 39 | make[1]: Leaving directory `/mnt/lfs/usr/src/bash-&bash-version;/doc'
|
---|
[b822811] | 40 | make: [install] Error 2 (ignored)</screen></blockquote>
|
---|
[20ea64e] | 41 |
|
---|
[b822811] | 42 | <para>then that means that you are probably using Debian, and that you have an
|
---|
[20ea64e] | 43 | old version of the texinfo package. This error is not severe by any means: the
|
---|
[94aac945] | 44 | info pages will be installed when we recompile bash dynamically in
|
---|
[26e62aa] | 45 | Chapter 6, so you can ignore it.</para>
|
---|
[0e6ea1c] | 46 |
|
---|
[6370fa6] | 47 | </sect2>
|
---|
| 48 |
|
---|