2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Bash</title>
|
|
|
|
|
2001-09-05 18:47:33 +01:00
|
|
|
<para>Before you attempt to install Bash, you have to check to make sure
|
|
|
|
your distribution has the <filename>/usr/lib/libcurses.a</filename> and
|
2001-09-11 17:37:06 +01:00
|
|
|
<filename>/usr/lib/libncurses.a</filename> files. If your host
|
|
|
|
distribution is an LFS system, all files will be present if you followed
|
|
|
|
the instructions of the book version you read exactly.</para>
|
2001-09-05 18:47:33 +01:00
|
|
|
|
2001-09-11 17:37:06 +01:00
|
|
|
<para>If both of the files are missing, you have to install the ncurses
|
2001-10-01 17:57:22 +01:00
|
|
|
development package. This package is often called something like
|
2001-09-11 17:37:06 +01:00
|
|
|
<emphasis>ncurses-dev</emphasis>. If this package is already installed,
|
2001-10-01 17:57:22 +01:00
|
|
|
or you just installed it, check for the two files again. Often the
|
2001-09-11 17:37:06 +01:00
|
|
|
<filename>libcurses.a</filename> file is (still) missing. If so, then
|
|
|
|
create <filename>libcurses.a</filename> as a symlink by running the
|
2002-02-02 18:04:56 +00:00
|
|
|
following commands as user root:</para>
|
2001-09-05 18:47:33 +01:00
|
|
|
|
2002-05-02 21:15:02 +01:00
|
|
|
<para><screen><userinput>ln -s libncurses.a /usr/lib/libcurses.a</userinput></screen></para>
|
2001-09-05 18:47:33 +01:00
|
|
|
|
|
|
|
<para>Now we can continue. Install Bash by running the following
|
|
|
|
commands:</para>
|
2001-04-17 00:54:45 +01:00
|
|
|
|
2002-05-02 21:15:02 +01:00
|
|
|
<para><screen><userinput>./configure --enable-static-link \
|
|
|
|
--prefix=$LFS/usr --bindir=$LFS/bin --with-curses &&
|
2001-10-27 23:21:44 +01:00
|
|
|
make &&
|
|
|
|
make install &&
|
2002-05-02 21:15:02 +01:00
|
|
|
ln -sf bash $LFS/bin/sh</userinput></screen></para>
|
2001-04-17 00:54:45 +01:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>If the make install phase ends with something along the lines of</para>
|
2001-04-15 17:45:18 +01:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<blockquote><screen>install-info: unknown option `--dir-file=/mnt/lfs/usr/info/dir'
|
2001-04-15 17:45:18 +01:00
|
|
|
usage: install-info [--version] [--help] [--debug] [--maxwidth=nnn]
|
|
|
|
[--section regexp title] [--infodir=xxx] [--align=nnn]
|
|
|
|
[--calign=nnn] [--quiet] [--menuentry=xxx]
|
|
|
|
[--info-dir=xxx]
|
|
|
|
[--keep-old] [--description=xxx] [--test]
|
|
|
|
[--remove] [--] filename
|
|
|
|
make[1]: *** [install] Error 1
|
2001-07-23 13:35:43 +01:00
|
|
|
make[1]: Leaving directory `/mnt/lfs/usr/src/bash-&bash-version;/doc'
|
2001-07-22 20:45:10 +01:00
|
|
|
make: [install] Error 2 (ignored)</screen></blockquote>
|
2001-04-15 17:45:18 +01:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>then that means that you are probably using Debian, and that you have an
|
2001-04-15 17:45:18 +01:00
|
|
|
old version of the texinfo package. This error is not severe by any means: the
|
2001-05-08 03:19:22 +01:00
|
|
|
info pages will be installed when we recompile bash dynamically in
|
2001-09-11 20:40:12 +01:00
|
|
|
chapter 6, so you can ignore it.</para>
|
2001-09-11 20:25:24 +01:00
|
|
|
|
|
|
|
<para>When we tested it with the latest Debian version, the last two
|
|
|
|
commands were executed because the install process didn't return with a
|
|
|
|
value larger than 0. But you would do good to check if you have the
|
|
|
|
<filename class="symlink">$LFS/bin/sh</filename> symlink on your LFS
|
|
|
|
partition. If not, run the last two commands manually now.</para>
|
2001-04-15 17:45:18 +01:00
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect2>
|
|
|
|
|