LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 09: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 09:53 AM.
 
Old 07-25-2010, 10:14 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,517

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Why didn't you used your package manager to install the 2 packages
Code:
apt-get install bison flex
 
Old 07-25-2010, 11:26 AM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
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, 12:51 PM   #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


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


All times are GMT -5. The time now is 03:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration