67

I am having a problem that doesn't seem to be common based on searching various forums.

I cannot run the Make command.

Message:

The program 'make' is currently not installed. You can install it by typing:
sudo apt-get install make

So do this:

sudo apt-get install make
Reading package lists... Done
Building dependency tree       
Reading state information... Done
make is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

But then when I try to run Make I get the same message. What's up?

Edit: Ubuntu 12.04 64bit Desktop fresh install.

  • Probably make is not in the correct $PATH Try sudo apt-get remove make sudo apt-get install make – Tachyons Sep 25 '12 at 0:46
  • IT WORKED! You are awesome. – snoopdogg Sep 25 '12 at 0:50
  • :), I am gonna post it is an answer, please press tick mark on it – Tachyons Sep 25 '12 at 1:23
59

Probably it is due command make is not present in system PATH, so remove and reinstall it.

sudo apt-get install --reinstall make
55

Run this command to install make and all the packages needed to build your code.

sudo apt-get install build-essential
  • 2
    This worked for me... – M_R_K Apr 17 '16 at 21:59
  • 1
    also installs cc which was the next command missing. – chovy Oct 14 '16 at 7:02
4

Run command:

sudo apt-get update

to update package lists. After this,

sudo apt-get install make

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.