bash.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/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>1.2 SBU</seg>
  24. <seg>20.7 MB</seg>
  25. </seglistitem>
  26. </segmentedlist>
  27. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  28. href="../chapter06/bash.xml"
  29. xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Bash</title>
  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>