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
|
|
|
|
<filename>/usr/lib/libncurses.a</filename> files. If both of the files
|
|
|
|
are missing, you have to install the ncurses development package. This
|
|
|
|
package is often call something like <emphasis>ncurses-dev</emphasis>.</para>
|
|
|
|
|
|
|
|
<para>If this package is already installed, or you just did it, check
|
|
|
|
for the two files again. Often the <filename>libcurses.a</filename> file
|
|
|
|
is (still) missing. If so, then create <filename>libcurses.a</filename>
|
|
|
|
as a symlink by running the following commands:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>cd /usr/lib &&</userinput>
|
|
|
|
<userinput>ln -s libncurses.a libcurses.a</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Now we can continue. Install Bash by running the following
|
|
|
|
commands:</para>
|
2001-04-17 00:54:45 +01:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><screen><userinput>./configure --enable-static-link --prefix=$LFS/usr \</userinput>
|
2001-09-05 18:47:33 +01:00
|
|
|
<userinput> --bindir=$LFS/bin --with-curses &&</userinput>
|
2001-07-06 16:25:48 +01:00
|
|
|
<userinput>make &&</userinput>
|
|
|
|
<userinput>make install &&</userinput>
|
|
|
|
<userinput>cd $LFS/bin &&</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>ln -sf bash 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
|
|
|
|
chapter 6, so you can ignore it. You do, however, have to run the last
|
|
|
|
two commands manually (the <userinput>cd $LFS/bin</userinput> and
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>ln -sf bash sh</userinput> commands) because they won't be
|
2001-07-22 20:45:10 +01:00
|
|
|
executed when the error occurs.</para>
|
2001-04-15 17:45:18 +01:00
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect2>
|
|
|
|
|