shellutils-inst.xml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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>Prepare Sh-utils to be compiled:</para>
  11. <para><screen><userinput>LDFLAGS="-static" ./configure --prefix=$LFS/static \
  12. &nbsp;&nbsp;&nbsp;&nbsp;--disable-nls</userinput></screen></para>
  13. <para>Continue with compiling the package:</para>
  14. <para><screen><userinput>make</userinput></screen></para>
  15. <para>And finish off installing the package:</para>
  16. <para><screen><userinput>make install</userinput></screen></para>
  17. <para>During the make install stage you will see the following warning:</para>
  18. <blockquote><screen>WARNING: insufficient access; not installing su
  19. NOTE: to install su, run 'make install-root' as root</screen></blockquote>
  20. <para>You can safely ignore that warning. You need to be logged in as root
  21. in order to install su the way Sh-utils wants to install it, which is being
  22. suid root. Because we don't need su during Chapter 6, and su will be properly
  23. installed when we re-install Sh-utils in Chapter 6, you can just
  24. pretend you didn't see it.</para>
  25. </sect2>