m4-inst.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <sect2>
  2. <title>Installation of M4</title>
  3. <para>
  4. Install M4 by running the following commands:
  5. </para>
  6. <blockquote><literallayout>
  7. <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
  8. <userinput>make &amp;&amp;</userinput>
  9. <userinput>make install</userinput>
  10. </literallayout></blockquote>
  11. <para>
  12. If you're base system is running a 2.0 kernel and your Glibc version is
  13. 2.1 then you will most likely get problems executing M4 in the
  14. chroot'ed environment due to incompatibilities between the M4 program,
  15. Glibc-2.1 and the running 2.0 kernel. If you have problems executing the
  16. m4 program in the chroot'ed environment (for example when you install
  17. the autoconf and automake packages) you'll have to exit the chroot'ed
  18. environment and compile M4 statically. This way the binary is linked
  19. against Glibc 2.0 (if you run kernel 2.0 you're Glibc version is 2.0 as
  20. well on a decent system. Kernel 2.0 and Glibc-2.1 don't mix very well)
  21. and won't give you any problems.
  22. </para>
  23. <para>
  24. To create a statically linked version of M4, execute the following
  25. commands:
  26. </para>
  27. <blockquote><literallayout>
  28. <userinput>logout</userinput>
  29. <userinput>cd $LFS/usr/src/m4-1.4</userinput>
  30. <userinput>./configure --prefix=/usr --disable-nls</userinput>
  31. <userinput>make LDFLAGS=-static</userinput>
  32. <userinput>make prefix=$LFS/usr install</userinput>
  33. </literallayout></blockquote>
  34. <para>
  35. Now you can re-enter the chroot'ed environment and continue with the
  36. next package. If you wish to recompile M4 dynamically, you can do that
  37. after you have rebooted into the LFS system rather than chroot'ed into it.
  38. </para>
  39. <blockquote><literallayout>
  40. <userinput>chroot $LFS env -i HOME=/root bash --login</userinput>
  41. </literallayout></blockquote>
  42. </sect2>