LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-02-2005, 05:37 AM   #1
rameshsena
LQ Newbie
 
Registered: Sep 2005
Location: Bangalore
Posts: 3

Rep: Reputation: 0
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
 
Old 09-02-2005, 05:59 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
That depends which distribution of Linux you're using
 
Old 11-27-2005, 10:28 AM   #3
noid
LQ Newbie
 
Registered: Apr 2005
Posts: 7

Rep: Reputation: 0
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.
 
Old 11-27-2005, 11:03 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 12-02-2005, 02:24 PM   #5
noid
LQ Newbie
 
Registered: Apr 2005
Posts: 7

Rep: Reputation: 0
thanks. will take a look in a mo. .c.
 
Old 06-06-2009, 10:52 PM   #6
birds
LQ Newbie
 
Registered: May 2009
Posts: 5

Rep: Reputation: 0
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
 
Old 06-07-2009, 07:34 AM   #7
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
That depends which distribution of Linux you're using
 
Old 06-21-2010, 07:11 AM   #8
abhipesit
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
Unhappy 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.
 
Old 06-21-2010, 07:37 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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

..
 
Old 06-21-2010, 08:52 AM   #10
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
better: apt-get install build-essential
 
Old 06-21-2010, 11:33 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.!

..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bison / flex zaman Programming 1 08-16-2005 10:19 AM
Problem with binutils first pass / bison & flex installation peristaltic Linux From Scratch 3 03-20-2005 10:17 AM
[flex & bison] Why does my rule fail from line 2? chuanyung Programming 0 07-30-2004 04:21 AM
Installing Bison lectraplayer Linux - Newbie 2 09-25-2003 07:43 PM
bison, flex and make problem ChimpFace9000 Programming 4 05-19-2002 07:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration