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>
|
|
|
|
|
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>Prepare Flex to be compiled:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Continue with compiling the package:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>make</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Install the package:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>make install</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2003-01-27 22:10:07 +00:00
|
|
|
<para>There are packages which expect to find the lex library
|
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
|
|
|
in the <filename>/usr/lib</filename> directory. 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
|
|
|
|
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>Some programs don't know about flex and try to find the lex
|
|
|
|
program (flex is a (better) alternative for lex). To please those
|
|
|
|
programs, create a shell script named lex which calls flex in
|
|
|
|
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>
|
|
|
|
|