[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Installation of Bash</title>
|
---|
| 3 |
|
---|
| 4 | <para>
|
---|
[970f0b3] | 5 | Bash needs a static ncurses library that goes by the name of libcurses.a. Some
|
---|
| 6 | distributions provide this file under the name of libncurses.a. If this is the
|
---|
| 7 | case of your distribution, run the following two commands to fix the problem:
|
---|
[6370fa6] | 8 | </para>
|
---|
| 9 |
|
---|
| 10 | <para>
|
---|
[c85f976] | 11 | Note: Normally, the libncurses.a file resides in the /usr/lib directory
|
---|
[1e0337d] | 12 | but it might reside in /lib (like it does on LFS systems). Check this
|
---|
| 13 | first and adjust the path in the following commands accordingly:
|
---|
[6370fa6] | 14 | </para>
|
---|
| 15 |
|
---|
[a00fc2a] | 16 | <blockquote><literallayout>
|
---|
| 17 | <userinput>cd /usr/lib &&</userinput>
|
---|
| 18 | <userinput>ln -s libncurses.a libcurses.a</userinput>
|
---|
| 19 | </literallayout></blockquote>
|
---|
| 20 |
|
---|
[970f0b3] | 21 | <para>
|
---|
| 22 | Install Bash by running the following commands:
|
---|
| 23 | </para>
|
---|
| 24 |
|
---|
| 25 | <blockquote><literallayout>
|
---|
| 26 | <userinput>./configure --enable-static-link --prefix=$LFS/usr \</userinput>
|
---|
| 27 | <userinput> --bindir=$LFS/bin
|
---|
| 28 | --with-curses &&</userinput>
|
---|
| 29 | <userinput>make &&</userinput>
|
---|
| 30 | <userinput>make install &&</userinput>
|
---|
| 31 | <userinput>cd $LFS/bin &&</userinput>
|
---|
| 32 | <userinput>ln -s bash sh</userinput>
|
---|
| 33 | </literallayout></blockquote>
|
---|
| 34 |
|
---|
[20ea64e] | 35 | <para>
|
---|
| 36 | If the make install phase ends with something along the lines of
|
---|
| 37 | </para>
|
---|
| 38 |
|
---|
| 39 | <blockquote>
|
---|
| 40 | <screen>
|
---|
| 41 | install-info: unknown option `--dir-file=/mnt/lfs/usr/info/dir'
|
---|
| 42 | usage: install-info [--version] [--help] [--debug] [--maxwidth=nnn]
|
---|
| 43 | [--section regexp title] [--infodir=xxx] [--align=nnn]
|
---|
| 44 | [--calign=nnn] [--quiet] [--menuentry=xxx]
|
---|
| 45 | [--info-dir=xxx]
|
---|
| 46 | [--keep-old] [--description=xxx] [--test]
|
---|
| 47 | [--remove] [--] filename
|
---|
| 48 | make[1]: *** [install] Error 1
|
---|
| 49 | make[1]: Leaving directory `/mnt/lfs/usr/src/bash-2.04/doc'
|
---|
| 50 | make: [install] Error 2 (ignored)
|
---|
| 51 | </screen>
|
---|
| 52 | </blockquote>
|
---|
| 53 |
|
---|
| 54 | <para>
|
---|
| 55 | then that means that you are probably using Debian, and that you have an
|
---|
| 56 | old version of the texinfo package. This error is not severe by any means: the
|
---|
| 57 | info pages will be installed when we recompile bash dynamically in chapter 6.
|
---|
| 58 | </para>
|
---|
| 59 |
|
---|
[6370fa6] | 60 | </sect2>
|
---|
| 61 |
|
---|