bash.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-tools-bash" role="wrap">
  8. <?dbhtml filename="bash.html"?>
  9. <title>Bash-&bash-version;</title>
  10. <indexterm zone="ch-tools-bash">
  11. <primary sortas="a-Bash">Bash</primary>
  12. <secondary>tools</secondary>
  13. </indexterm>
  14. <sect2 role="package">
  15. <title/>
  16. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  17. href="../chapter06/bash.xml"
  18. xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  19. <segmentedlist>
  20. <segtitle>&buildtime;</segtitle>
  21. <segtitle>&diskspace;</segtitle>
  22. <seglistitem>
  23. <seg>&bash-ch5-sbu;</seg>
  24. <seg>&bash-ch5-du;</seg>
  25. </seglistitem>
  26. </segmentedlist>
  27. </sect2>
  28. <sect2 role="installation">
  29. <title>Installation of Bash</title>
  30. <para>Apply fixes for several bugs discovered since the initial release of
  31. Bash-&bash-version;:</para>
  32. <screen><userinput>patch -Np1 -i ../&bash-fixes-patch;</userinput></screen>
  33. <para>Prepare Bash for compilation:</para>
  34. <screen><userinput>./configure --prefix=/tools --without-bash-malloc</userinput></screen>
  35. <variablelist>
  36. <title>The meaning of the configure option:</title>
  37. <varlistentry>
  38. <term><parameter>--without-bash-malloc</parameter></term>
  39. <listitem>
  40. <para>This option turns off the use of Bash's memory allocation
  41. (<function>malloc</function>) function which is known to cause
  42. segmentation faults. By turning this option off, Bash will use
  43. the <function>malloc</function> functions from Glibc which are
  44. more stable.</para>
  45. </listitem>
  46. </varlistentry>
  47. </variablelist>
  48. <para>Compile the package:</para>
  49. <screen><userinput>make</userinput></screen>
  50. <para>To test the results, issue:
  51. <userinput>make tests</userinput>.</para>
  52. <para>Install the package:</para>
  53. <screen><userinput>make install</userinput></screen>
  54. <para>Make a link for the programs that use <command>sh</command> for
  55. a shell:</para>
  56. <screen><userinput>ln -vs bash /tools/bin/sh</userinput></screen>
  57. </sect2>
  58. <sect2 role="content">
  59. <title/>
  60. <para>Details on this package are located in
  61. <xref linkend="contents-bash" role="."/></para>
  62. </sect2>
  63. </sect1>