bash.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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>&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>Prepare Bash for compilation:</para>
  31. <screen><userinput>./configure --prefix=/tools --without-bash-malloc</userinput></screen>
  32. <variablelist>
  33. <title>The meaning of the configure option:</title>
  34. <varlistentry>
  35. <term><parameter>--without-bash-malloc</parameter></term>
  36. <listitem>
  37. <para>This option turns off the use of Bash's memory allocation
  38. (<function>malloc</function>) function which is known to cause
  39. segmentation faults. By turning this option off, Bash will use
  40. the <function>malloc</function> functions from Glibc which are
  41. more stable.</para>
  42. </listitem>
  43. </varlistentry>
  44. </variablelist>
  45. <para>Compile the package:</para>
  46. <screen><userinput>make</userinput></screen>
  47. <para>To test the results, issue:
  48. <userinput>make tests</userinput>.</para>
  49. <para>Install the package:</para>
  50. <screen><userinput>make install</userinput></screen>
  51. <para>Make a link for the programs that use <command>sh</command> for
  52. a shell:</para>
  53. <screen><userinput>ln -vs bash /tools/bin/sh</userinput></screen>
  54. </sect2>
  55. <sect2 role="content">
  56. <title/>
  57. <para>Details on this package are located in
  58. <xref linkend="contents-bash" role="."/></para>
  59. </sect2>
  60. </sect1>