M HYPE SPLASH
// updates

make: flex: Command not found

By Emily Wilson

I am very new to Linux. I am using Xubuntu 14.10 on vmware and I am trying to make an executable. I typed make in the terminal, but the process stopped because of the error:

flex -Pfct_pddl lex-fct_pddl.l
make: flex: Command not found
makefile:66: recipe for target 'lex.fct_pddl.c' failed
make: *** [lex.fct_pddl.c] Error 127

From what I understand I need to install flex. I tried to go with this:

sudo apt-get install flex

but I got this:

Package flex is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'flex' has no installation candidate

Any idea of what I should do? Thanks.

1

1 Answer

Try this:

Open a terminal,

Press Ctrl+Alt+T

Run it:

sudo -i
nano /etc/apt/sources.list

In the open file, delete its contents and put this:

deb utopic main restricted
deb-src utopic main restricted
deb utopic-updates main restricted
deb-src utopic-updates main restricted
deb utopic universe multiverse
deb-src utopic universe multiverse
deb utopic-security main restricted
deb-src utopic-security main restricted
deb utopic-backports main restricted universe multiverse

Ctrl+O Save File

Ctrl+X Close Nano

Continue running:

apt-get update
apt-get dist-upgrade
apt-get install flex
2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy