![]() |
installing bison and flex
How 2 install flex and bison which is important for making work yacc and lex. If any one know give the step by step installation procedure. Thank you
|
That depends which distribution of Linux you're using
|
Hi.
My aim is to install and hopefully learn to use tetex, but when I tried to ./configure it said I needed lex or flex. I arbitrarily choose flex, download it, and try to install it. When I try to make it I get a message to say that there's no such command as yacc. Not knowing what that is, I google and find something called bison which is supposed to do the same thing. That gets installed and made no problem, but flex still gives me the yacc error, so I have no idea where to go from here. I'm using Suse 9.2. |
There is a tetex package that comes with SuSE.
Try this command for more information: rpm -q tetex te_latex After installing tetex and te_latex, there will be documention under /usr/share/texmf/doc. |
thanks. will take a look in a mo. .c.
|
instal bison and flex for linux
installing bison and flex
-------------------------------------------------------------------------------- How 2 install flex and bison which is important for making work yacc and lex. If any one know give the step by step installation procedure. Thank you |
That depends which distribution of Linux you're using
|
installing flex/bison
I am using ubuntu 9.10. I downloaded flex-2.5.35 and untarred it.
I tried to run ./configure..but it failed. I got the following output.. hecking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether NLS is requested... yes checking for msgfmt... no checking for gmsgfmt... : checking for xgettext... no checking for msgmerge... no checking for style of include used by make... GNU checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking dependency style of gcc... gcc3 checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking whether NLS is requested... yes checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking for bison... no checking for byacc... no checking for flex... no checking for lex... no checking for yywrap in -lfl... no checking for yywrap in -ll... no checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ANSI C... (cached) none needed checking dependency style of gcc... (cached) gcc3 checking for g++... no checking for c++... no checking for gpp... no checking for aCC... no checking for CC... no checking for cxx... no checking for cc++... no checking for cl... no checking for FCC... no checking for KCC... no checking for RCC... no checking for xlC_r... no checking for xlC... no checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no checking dependency style of g++... none checking whether ln -s works... yes checking for ranlib... ranlib checking for gawk... (cached) mawk checking for a BSD-compatible install... /usr/bin/install -c checking for bison... bison checking for help2man... help2man checking for gm4... no checking for gnum4... no checking for m4... no checking for GNU m4... no configure: error: GNU M4 1.4 is required Please let me know the step by step procedure of installing flex/bison. I am a newbie to linux... Any kind of help will be truly appreciated. |
Post # 8, @ abhipesit : Welcome to LQ. .. .:)
No reason to download any system software in Linux. Never. It's all available in the Package Manager = 'synaptic'. Or use the command line in a terminal window : sudo apt-get update sudo apt-get install flex g++ automake autoconf make .. |
better: apt-get install build-essential
|
http://packages.ubuntu.com/karmic/build-essential
QUOTE : ""If you do not plan to build Debian packages, you don't need this package. "" And flex is not included.! .. |
| All times are GMT -5. The time now is 12:39 AM. |