Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-01-16 19:55:00 +00:00
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Flex</title>
|
|
|
|
|
2003-08-30 00:20:23 +01:00
|
|
|
<para>Prepare Flex for compilation:</para>
|
Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-01-16 19:55:00 +00:00
|
|
|
|
|
|
|
<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
|
|
|
|
|
2003-08-30 00:20:23 +01:00
|
|
|
<para>Compile the package:</para>
|
Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-01-16 19:55:00 +00:00
|
|
|
|
|
|
|
<para><screen><userinput>make</userinput></screen></para>
|
|
|
|
|
2003-09-11 21:07:44 +01:00
|
|
|
<para>This package has a testsuite available which can perform a number of
|
|
|
|
checks to ensure it built correctly. Should you choose to run it, the
|
|
|
|
following command will do so:</para>
|
2003-08-30 00:20:23 +01:00
|
|
|
|
2003-05-13 08:38:47 +01:00
|
|
|
<para><screen><userinput>make bigcheck</userinput></screen></para>
|
|
|
|
|
2003-08-30 00:20:23 +01:00
|
|
|
<para>And install the package:</para>
|
Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-01-16 19:55:00 +00:00
|
|
|
|
|
|
|
<para><screen><userinput>make install</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2003-08-31 22:52:02 +01:00
|
|
|
<para>There are some packages that expect to find the Lex library in
|
|
|
|
<filename>/usr/lib</filename>. Create a symlink to account for this:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-01-16 19:55:00 +00:00
|
|
|
<para><screen><userinput>ln -s libfl.a /usr/lib/libl.a</userinput></screen></para>
|
2001-11-06 00:49:29 +00:00
|
|
|
|
2003-08-31 22:52:02 +01:00
|
|
|
<para>A few programs don't know about <userinput>flex</userinput> yet and try
|
|
|
|
to run its predecessor <userinput>lex</userinput>. To support those programs,
|
|
|
|
create a shell script named <filename>lex</filename> that calls
|
|
|
|
<userinput>flex</userinput> in Lex emulation mode:</para>
|
2001-11-06 00:49:29 +00:00
|
|
|
|
|
|
|
<para><screen><userinput>cat > /usr/bin/lex << "EOF"</userinput>
|
|
|
|
#!/bin/sh
|
|
|
|
# Begin /usr/bin/lex
|
|
|
|
|
|
|
|
exec /usr/bin/flex -l "$@"
|
|
|
|
|
|
|
|
# End /usr/bin/lex
|
|
|
|
<userinput>EOF
|
|
|
|
chmod 755 /usr/bin/lex</userinput></screen></para>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect2>
|
|
|
|
|