shellutils-inst.xml 1.0 KB

1234567891011121314151617181920212223242526
  1. <sect2>
  2. <title>Installation of Sh-utils</title>
  3. <para>Install Sh-utils by running the following commands:</para>
  4. <para><screen><userinput>./configure --prefix=$LFS/usr \
  5. &nbsp;&nbsp;&nbsp;&nbsp;--disable-nls &amp;&amp;
  6. make LDFLAGS=-static &amp;&amp;
  7. make install &amp;&amp;
  8. mv $LFS/usr/bin/{basename,date,echo,false,hostname} $LFS/bin &amp;&amp;
  9. mv $LFS/usr/bin/{pwd,sleep,stty,test,true,uname} $LFS/bin &amp;&amp;
  10. mv $LFS/usr/bin/chroot $LFS/usr/sbin</userinput></screen></para>
  11. <para>During the make install stage you will see the following warning:</para>
  12. <blockquote><screen>WARNING: insufficient access; not installing su
  13. NOTE: to install su, run 'make install-root' as root</screen></blockquote>
  14. <para>You can safely ignore that warning. You need to be logged in as root
  15. in order to install su the way sh-utils wants to install it, that being
  16. suid root. Because we don't need su during chapter 6, and su will be properly
  17. installed when we re-install sh-utils in chapter 6 anyways, you can just
  18. pretend you didn't see it.</para>
  19. </sect2>