[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Installation of Bash</title>
|
---|
| 3 |
|
---|
| 4 | <para>
|
---|
| 5 | Install Bash by running the following commands:
|
---|
| 6 | </para>
|
---|
| 7 |
|
---|
| 8 | <blockquote><literallayout>
|
---|
| 9 | <userinput>./configure --enable-static-link --prefix=$LFS/usr \</userinput>
|
---|
[32bbb1c] | 10 | <userinput> --bindir=$LFS/bin
|
---|
[6370fa6] | 11 | --with-curses &&</userinput>
|
---|
| 12 | <userinput>make &&</userinput>
|
---|
| 13 | <userinput>make install &&</userinput>
|
---|
| 14 | <userinput>cd $LFS/bin &&</userinput>
|
---|
| 15 | <userinput>ln -s bash sh</userinput>
|
---|
| 16 | </literallayout></blockquote>
|
---|
| 17 |
|
---|
| 18 | <para>
|
---|
[1e0337d] | 19 | If you get errors when compiling bash that tell about not being able to
|
---|
[c85f976] | 20 | find <quote>-lcurses</quote>, these two commands should be run to create the
|
---|
[1e0337d] | 21 | missing symlink:
|
---|
[6370fa6] | 22 | </para>
|
---|
| 23 |
|
---|
| 24 | <para>
|
---|
[c85f976] | 25 | Note: Normally, the libncurses.a file resides in the /usr/lib directory
|
---|
[1e0337d] | 26 | but it might reside in /lib (like it does on LFS systems). Check this
|
---|
| 27 | first and adjust the path in the following commands accordingly:
|
---|
[6370fa6] | 28 | </para>
|
---|
| 29 |
|
---|
[a00fc2a] | 30 | <blockquote><literallayout>
|
---|
| 31 | <userinput>cd /usr/lib &&</userinput>
|
---|
| 32 | <userinput>ln -s libncurses.a libcurses.a</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 |
|
---|