diff options
author | Gerard Beekmans <gerard@linuxfromscratch.org> | 2001-01-24 00:31:17 +0000 |
---|---|---|
committer | Gerard Beekmans <gerard@linuxfromscratch.org> | 2001-01-24 00:31:17 +0000 |
commit | 6370fa6cff0ec2a8ac8d50d1595ec9500f6631c9 (patch) | |
tree | b17c8cb0a839b76f4a7db0f771953caa11c3a04e /chapter06/m4-inst.sgml | |
parent | 5c930fe6eb43d23cfa0de2451d9a905a8505f981 (diff) |
Initial commit - LFS 2.4.4 files
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@14 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/m4-inst.sgml')
-rw-r--r-- | chapter06/m4-inst.sgml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/chapter06/m4-inst.sgml b/chapter06/m4-inst.sgml new file mode 100644 index 000000000..ef29a5d65 --- /dev/null +++ b/chapter06/m4-inst.sgml @@ -0,0 +1,57 @@ +<sect2> +<title>Installation of M4</title> + +<para> +Install M4 by running the following commands: +</para> + +<blockquote><literallayout> + + <userinput>./configure --prefix=/usr &&</userinput> + <userinput>make &&</userinput> + <userinput>make install</userinput> + +</literallayout></blockquote> + +<para> +If you're base system is running a 2.0 kernel and your Glibc version is +2.1 then you will most likely get problems executing M4 in the +chroot'ed environment due to incompatibilities between the M4 program, +Glibc-2.1 and the running 2.0 kernel. If you have problems executing the +m4 program in the chroot'ed environment (for example when you install +the autoconf and automake packages) you'll have to exit the chroot'ed +environment and compile M4 statically. This way the binary is linked +against Glibc 2.0 (if you run kernel 2.0 you're Glibc version is 2.0 as +well on a decent system. Kernel 2.0 and Glibc-2.1 don't mix very well) +and won't give you any problems. +</para> + +<para> +To create a statically linked version of M4, execute the following +commands: +</para> + +<blockquote><literallayout> + +<userinput>logout</userinput> +<userinput>cd $LFS/usr/src/m4-1.4</userinput> +<userinput>./configure --prefix=/usr --disable-nls</userinput> +<userinput>make LDFLAGS=-static</userinput> +<userinput>make prefix=$LFS/usr install</userinput> + +</literallayout></blockquote> + +<para> +Now you can re-enter the chroot'ed environment and continue with the +next package. If you wish to recompile M4 dynamically, you can do that +after you have rebooted into the LFS system rather than chroot'ed into it. +</para> + +<blockquote><literallayout> + + <userinput>chroot $LFS env -i HOME=/root bash --login</userinput> + +</literallayout></blockquote> + +</sect2> + |