2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-03-21 18:42:58 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2006-01-17 19:37:53 +00:00
|
|
|
|
2004-05-16 01:06:08 +01:00
|
|
|
<sect1 id="ch-tools-bash" role="wrap">
|
2006-01-17 19:37:53 +00:00
|
|
|
<?dbhtml filename="bash.html"?>
|
|
|
|
|
2007-09-07 20:16:43 +01:00
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>bash</productname>
|
|
|
|
<productnumber>&bash-version;</productnumber>
|
|
|
|
<address>&bash-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
2006-01-17 19:37:53 +00:00
|
|
|
<title>Bash-&bash-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="ch-tools-bash">
|
|
|
|
<primary sortas="a-Bash">Bash</primary>
|
|
|
|
<secondary>tools</secondary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title/>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2006-01-17 19:37:53 +00:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
|
|
|
href="../chapter06/bash.xml"
|
|
|
|
xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
|
2001-07-17 19:51:18 +01:00
|
|
|
|
2006-01-17 19:37:53 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-01-17 19:37:53 +00:00
|
|
|
<seglistitem>
|
2006-05-14 21:16:56 +01:00
|
|
|
<seg>&bash-ch5-sbu;</seg>
|
|
|
|
<seg>&bash-ch5-du;</seg>
|
2006-01-17 19:37:53 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-01-17 19:37:53 +00:00
|
|
|
</sect2>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-01-17 19:37:53 +00:00
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Bash</title>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-01-17 19:37:53 +00:00
|
|
|
<para>Prepare Bash for compilation:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2009-03-11 21:27:25 +00:00
|
|
|
<screen><userinput remap="configure">./configure --prefix=/tools --without-bash-malloc</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-01-17 19:37:53 +00:00
|
|
|
<variablelist>
|
2008-10-21 21:32:15 +01:00
|
|
|
<title>The meaning of the configure options:</title>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-01-17 19:37:53 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>--without-bash-malloc</parameter></term>
|
|
|
|
<listitem>
|
2006-01-30 06:51:33 +00:00
|
|
|
<para>This option turns off the use of Bash's memory allocation
|
2006-01-17 19:37:53 +00:00
|
|
|
(<function>malloc</function>) function which is known to cause
|
|
|
|
segmentation faults. By turning this option off, Bash will use
|
|
|
|
the <function>malloc</function> functions from Glibc which are
|
|
|
|
more stable.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-01-17 19:37:53 +00:00
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
<para>Compile the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2008-11-05 21:44:06 +00:00
|
|
|
<para>Compilation is now complete. As discussed earlier, running the test
|
|
|
|
suite is not mandatory for the temporary tools here in this chapter. To run
|
|
|
|
the Bash test suite anyway, issue the following command:</para>
|
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
|
|
|
|
<screen><userinput remap="test">make tests</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-01-17 19:37:53 +00:00
|
|
|
<para>Install the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-01-17 19:37:53 +00:00
|
|
|
<para>Make a link for the programs that use <command>sh</command> for
|
|
|
|
a shell:</para>
|
2004-12-22 12:06:22 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="install">ln -vs bash /tools/bin/sh</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-01-17 19:37:53 +00:00
|
|
|
</sect2>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2006-01-17 19:37:53 +00:00
|
|
|
<sect2 role="content">
|
|
|
|
<title/>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-01-17 19:37:53 +00:00
|
|
|
<para>Details on this package are located in
|
|
|
|
<xref linkend="contents-bash" role="."/></para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-01-17 19:37:53 +00:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|