shellutils-inst.xml 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. <sect2>
  2. <title>Installation of Sh-utils</title>
  3. <para>Before Sh-utils is installed, the sh-utils patch file may need to be
  4. applied. This patch is needed to avoid a conflict of variable names with
  5. certain Glibc versions (usually glibc-2.1.x) when compiling sh-utils
  6. statically. It is however safe to apply the patch even if you are running
  7. a different glibc version, so if you aren't sure, it's best to apply
  8. it.</para>
  9. <para><screen><userinput>patch -Np1 -i ../sh-utils-&sh-utils-version;.patch</userinput></screen></para>
  10. <para>Install Sh-utils by running the following commands:</para>
  11. <para><screen><userinput>./configure --prefix=$LFS/static \
  12. &nbsp;&nbsp;&nbsp;&nbsp;--disable-nls &amp;&amp;
  13. make LDFLAGS=-static &amp;&amp;
  14. make install</userinput></screen></para>
  15. <para>During the make install stage you will see the following warning:</para>
  16. <blockquote><screen>WARNING: insufficient access; not installing su
  17. NOTE: to install su, run 'make install-root' as root</screen></blockquote>
  18. <para>You can safely ignore that warning. You need to be logged in as root
  19. in order to install su the way Sh-utils wants to install it, which is being
  20. suid root. Because we don't need su during Chapter 6, and su will be properly
  21. installed when we re-install Sh-utils in Chapter 6, you can just
  22. pretend you didn't see it.</para>
  23. </sect2>