LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-25-2010, 08:26 AM   #1
narakunaraku
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Rep: Reputation: 0
Error after installing flex and bison


I have installed flex and bison in ubuntu 9.10.I downloaded the the respective tar files and followed the instructions as it was given in the Install file. However after installation I got lex command not found when I tried using it. Moreover I found no lex file in /usr/bin.

Last edited by narakunaraku; 07-25-2010 at 08:53 AM.
 
Old 07-25-2010, 09:14 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Why didn't you used your package manager to install the 2 packages
Code:
apt-get install bison flex
 
Old 07-25-2010, 10:26 AM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Or, you can probably simply add soft links from flex & bison to lex & yacc, respectivley:
Code:
cd /usr/bin
ln -s /usr/bin/flex lex
ln -s /usr/bin/bison yacc
You may have to e root to do this, and you may have to change the flex & bison filespec to match where they really got installed.

--- rod.
 
Old 07-30-2010, 11:51 AM   #4
narakunaraku
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Original Poster
Rep: Reputation: 0
found a something

Instead of lex command flex is working and instead of yacc bison is working. Anyway thank you
 
  


Reply



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
installing bison and flex rameshsena Linux - Software 10 06-21-2010 11:33 AM
flex and bison saurav.nith Linux - General 1 04-06-2010 06:38 AM
flex/bison parse error expecting a char that it shoulnd't vargadanis Programming 0 08-08-2008 04:37 AM
flex/bison -> parse error but why? vargadanis Programming 3 08-03-2008 07:44 PM
bison / flex zaman Programming 1 08-16-2005 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:46 PM.

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