Find the answer to your Linux question:
Results 1 to 2 of 2
When I tried to ./configure my sdcc (very nice c compiler btw) on a fresh ubuntu install. I got this message Code: root@kot:/home/jasper/uC/sdcc# ./configure checking for gawk... no checking for ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! vadre's Avatar
    Join Date
    Oct 2006
    Location
    Belgium
    Posts
    38

    configure: error: Cannot find required program lex.


    When I tried to ./configure my sdcc (very nice c compiler btw) on a fresh ubuntu install. I got this message
    Code:
    root@kot:/home/jasper/uC/sdcc# ./configure
    checking for gawk... no
    checking for mawk... mawk
    checking version of the package... 2.6.0
    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 for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking how to run the C preprocessor... gcc -E
    checking for a BSD-compatible install... /usr/bin/install -c
    checking for ranlib... ranlib
    checking for flex... no
    checking for lex... no
    checking for yywrap in -lfl... no
    checking for yywrap in -ll... no
    checking for bison... no
    checking for byacc... no
    checking for autoconf... :
    checking for strip... strip
    checking for as... as
    checking for cp... cp
    configure: error: Cannot find required program lex.
    I already installed the build-essentials and make... (by apt-get)

    I searched for lex but I actually didn't find it and doesn't know what it means...
    Can someone help me out?

    regards

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    I think you need to install a package called flex.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •