fileutils-inst.xml 1.0 KB

1234567891011121314151617181920212223
  1. <sect2>
  2. <title>Installation of Fileutils</title>
  3. <para>Before we install fileutils statically, if you are using
  4. glibc-2.2.3 you need to apply two seds in order to prevent them giving
  5. segmentation faults once we enter chroot in Chapter 6. The sed commands for
  6. those using glibc-2.2.3 are:
  7. <screen><userinput>sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
  8. <userinput> lib/Makefile.in &gt; tmp &amp;&amp;</userinput>
  9. <userinput>sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
  10. <userinput> tmp &gt; lib/Makefile.in</userinput></screen></para>
  11. <para>Install fileutils by running the following commands:
  12. <screen><userinput>./configure --disable-nls \</userinput>
  13. <userinput>&nbsp;&nbsp;&nbsp;--prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &amp;&amp;</userinput>
  14. <userinput>make LDFLAGS=-static &amp;&amp;</userinput>
  15. <userinput>make install &amp;&amp;</userinput>
  16. <userinput>cd $LFS/usr/bin &amp;&amp;</userinput>
  17. <userinput>ln -s ../../bin/install</userinput></screen></para>
  18. </sect2>