From 5cce404acfca10c9851dbc13e7c58c864f6852dd Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Wed, 5 Sep 2001 17:47:33 +0000 Subject: [PATCH] added notes to install ncurses properly on host distro (it's required for texinfo to be compiled properly). Added --with-curses to bash's configure again like previously done. This now functions as a test to make sure the libraries are setup properly (ie; that symlink created and such) git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1181 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/bash-exp.xml | 13 +++++++++++++ chapter05/bash-inst.xml | 19 +++++++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/chapter05/bash-exp.xml b/chapter05/bash-exp.xml index c4343c27d..949e22ab8 100644 --- a/chapter05/bash-exp.xml +++ b/chapter05/bash-exp.xml @@ -16,6 +16,19 @@ partition which has to be mounted at some point. Before that partition is mounted you need and will want to have bash available (it will be hard to execute the boot scripts without a shell for instance). +--with-curses: This causes Bash to be +linked against the curses library instead of the default termcap +library which is becoming obsolete. + +It is not strictly necessary for the static bash to be linked +against libncurses (it can link against a static termap for the time +being just fine because we will reinstall Bash in chapter 6 anyways, +where we will use libncurses), but it's a good test to make sure that +the ncurses package has been installed properly. If not, you will get in +trouble later on in this chapter when you install the Texinfo package. +That package requires ncurses and termcap can't reliably be used +there. + ln -sf bash sh: This command creates the sh symlink that points to bash. Most scripts run themselves via 'sh' (invoked by the #!/bin/sh as the first line in the scripts) which diff --git a/chapter05/bash-inst.xml b/chapter05/bash-inst.xml index 9dcd2775c..032d09ddc 100644 --- a/chapter05/bash-inst.xml +++ b/chapter05/bash-inst.xml @@ -1,10 +1,25 @@ Installation of Bash -Install Bash by running the following commands: +Before you attempt to install Bash, you have to check to make sure +your distribution has the /usr/lib/libcurses.a and +/usr/lib/libncurses.a files. If both of the files +are missing, you have to install the ncurses development package. This +package is often call something like ncurses-dev. + +If this package is already installed, or you just did it, check +for the two files again. Often the libcurses.a file +is (still) missing. If so, then create libcurses.a +as a symlink by running the following commands: + +cd /usr/lib && +ln -s libncurses.a libcurses.a + +Now we can continue. Install Bash by running the following +commands: ./configure --enable-static-link --prefix=$LFS/usr \ -   --bindir=$LFS/bin && +   --bindir=$LFS/bin --with-curses && make && make install && cd $LFS/bin &&