- Timestamp:
- 01/11/2003 03:58:55 PM (22 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v4_1, v5_0, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- e8fe4dc
- Parents:
- 63644a2
- Location:
- chapter05
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/bash-inst.xml
r63644a2 r78ec17a2 13 13 this package is already installed, or you just installed it, check for the 14 14 two files again. Often the <filename>libcurses.a</filename> file is (still) 15 missing. If so, thencreate <filename>libcurses.a</filename> as a symlink16 by running the following commands as user root:</para>15 missing. If so, create <filename>libcurses.a</filename> as a symlink 16 by running the following commands as user <emphasis>root:</emphasis></para> 17 17 18 18 <para><screen><userinput>ln -s libncurses.a /usr/lib/libcurses.a</userinput></screen></para> 19 19 20 <para>Now we can continue. Install Bash by running the following 21 commands:</para> 20 <para>Now we can really start. Prepare Bash to be compiled by running the 21 following command:</para> 22 22 23 23 24 <para><screen><userinput>./configure --enable-static-link \ 24 --prefix=$LFS/static --with-curses && 25 make && 26 make install</userinput></screen></para> 25 --prefix=$LFS/static --with-curses</userinput></screen></para> 26 27 <para>The meaning of the configure switches are:</para> 28 29 <itemizedlist> 30 <listitem><para><userinput>--enable-static-link:</userinput> This option 31 caused the <userinput>bash</userinput> program to be statically 32 linked.</para></listitem> 33 34 <listitem><para><userinput>--prefix=$LFS/static</userinput> This option 35 installs all of Bash's files under the $LFS/static directory, which becomes 36 the /static directory when chroot'ed or reboot'ed into 37 LFS.</para></listitem> 38 39 <listitem><para><userinput>--with-curses:</userinput> This option caused 40 bash to be linked against the curses library instead of the default termcap 41 library which is being phased out and has become obsolete. Note, on most 42 all Linux systems, the curses library is provided by the Ncurses 43 package (so in truth we link against the ncurses library).</para> 44 45 <para>It is not strictly necessary for the static bash to be linked 46 against libncurses (it can link against a static termcap for the time 47 being just fine because we will reinstall Bash in Chapter 6 anyways, 48 where we will use libncurses), but it's a good test to make sure that 49 the Ncurses package has been installed properly. If not, you will get in 50 trouble later on in this chapter when you install the Texinfo package. 51 That package requires ncurses, and termcap can't reliably be used 52 there.</para></listitem> 53 </itemizedlist> 54 55 <para>Now we can continue compiling Bash:</para> 56 57 <para><screen><userinput>make</userinput></screen></para> 58 59 <para>And finish off the installation by installing Bash:</para> 60 61 <para><screen><userinput>make install</userinput></screen></para> 27 62 28 63 <para>If the <userinput>make install</userinput> phase ends with something 29 along the lines of th is:</para>64 along the lines of the following:</para> 30 65 31 66 <blockquote><screen>install-info: unknown option `--dir-file=/mnt/lfs/usr/info/dir' … … 41 76 42 77 <para>then that means that you are probably using Debian-2.2 (potato), and 43 that you have an old version of the texinfo package . This error is not44 severe by any means: the info pages will be installed when we recompile bash 45 dynamically in Chapter 6, so you can ignore it. It is reported that the 46 current release of Debian (3.0; also known as Woody) doesn't have this 47 problem.</para>78 that you have an old version of the texinfo package and the info pages 79 can't be installed at this time. This error is not a problem as the info 80 pages will be installed when we recompile bash dynamically in Chapter 6, so 81 you can ignore it. It is reported that the current release of Debian 82 (3.0; also known as Woody) doesn't have this problem.</para> 48 83 49 84 </sect2> -
chapter05/bash.xml
r63644a2 r78ec17a2 6 6 Estimated required disk space: &bash-compsize-static;</screen> 7 7 8 &aa-bash-shortdesc; 9 &aa-bash-dep; 8 10 &c5-bash-inst; 9 &c5-bash-exp;10 &aa-bash-desc;11 &aa-bash-dep;12 11 13 12 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.