2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Sh-utils</title>
|
|
|
|
|
2002-08-18 18:26:58 +01:00
|
|
|
<para>Before Sh-utils is installed, the sh-utils patch file may need to be
|
|
|
|
applied. This patch is needed to avoid a conflict of variable names with
|
|
|
|
certain Glibc versions (usually glibc-2.1.x) when compiling sh-utils
|
|
|
|
statically. It is however safe to apply the patch even if you are running
|
2002-09-24 05:52:43 +01:00
|
|
|
a different glibc version. So, if you aren't sure, it's best to apply
|
2002-08-18 18:26:58 +01:00
|
|
|
it.</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>patch -Np1 -i ../sh-utils-&sh-utils-version;.patch</userinput></screen></para>
|
|
|
|
|
2003-01-15 02:58:53 +00:00
|
|
|
<para>Prepare Sh-utils to be compiled:</para>
|
2001-10-27 23:21:44 +01:00
|
|
|
|
2003-01-03 03:55:07 +00:00
|
|
|
<para><screen><userinput>LDFLAGS="-static" ./configure --prefix=$LFS/static \
|
2003-01-15 02:58:53 +00:00
|
|
|
--disable-nls</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Continue with compiling the package:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>make</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>And finish off installing the package:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>make install</userinput></screen></para>
|
2002-02-20 01:10:39 +00:00
|
|
|
|
|
|
|
<para>During the make install stage you will see the following warning:</para>
|
|
|
|
|
|
|
|
<blockquote><screen>WARNING: insufficient access; not installing su
|
|
|
|
NOTE: to install su, run 'make install-root' as root</screen></blockquote>
|
|
|
|
|
|
|
|
<para>You can safely ignore that warning. You need to be logged in as root
|
2002-05-26 22:25:09 +01:00
|
|
|
in order to install su the way Sh-utils wants to install it, which is being
|
2002-09-20 22:11:28 +01:00
|
|
|
suid root. Because we don't need su during Chapter 6, and su will be properly
|
2003-01-27 21:28:02 +00:00
|
|
|
installed when we re-install Sh-utils in Chapter 6.</para>
|
2002-02-20 01:10:39 +00:00
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect2>
|
|
|
|
|