How do I install make?

364,048

Solution 1

Run the command:

sudo apt-get install build-essential

Chances are you will need things like gcc to actually do the building so you might as well install those as well. The build-essential package will install other tools used along with make.

Solution 2

It definitely looks like make is installed on your box. The reply you are getting is actually an error generated by make, complaining that it can't file the Makefile (which would tell it what needs to be done)

Is there any Makefile.pl in the module you are trying to install? If so, try:

$ perl Makefile.pl
$ make

Solution 3

sudo apt-get update

sudo apt-get -y install make

(-y = answer 'yes' to any prompts)

Check the installed version:

make -v

Share:
364,048

Related videos on Youtube

Deepak Singhal
Author by

Deepak Singhal

I am having 20+ years of experience in Java, J2ee technologies, Cloud computing, IoT and BigData. I consider myself as a technocrat by brains and an entrepreneur by heart.

Updated on September 18, 2022

Comments

  • Deepak Singhal
    Deepak Singhal almost 2 years
    /usr/bin/perl install-module.pl --all
    ERROR: Using install-module.pl requires that you install "make".
    

    I need to install make on my ubuntu on AWS EC2. How can I do that ? I could finally install build-essential also successfully.

    # make
    make: *** No targets specified and no makefile found.  Stop.
    
    • Admin
      Admin almost 12 years
      which ubuntu version do you use?
    • Deepak Singhal
      Deepak Singhal almost 12 years
      Version I am using is 11.04 (GNU/Linux 2.6.38-8-virtual x86_64)
    • Admin
      Admin almost 12 years
      just saw, that on my ubuntu 12.04 there is also a package make. probably sudo apt-get install make will work...
    • Deepak Singhal
      Deepak Singhal almost 12 years
      sudo apt-get install make Reading package lists... Done Building dependency tree Reading state information... Done Package make 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 'make' has no installation candidate
    • Keith Thompson
      Keith Thompson almost 12 years
      The make package definitely should be available; I have version 3.81-8.1ubuntu1 on my system. You might have a problem with your /etc/apt/sources.list, which defines where apt-get looks for packages.
  • Asclepius
    Asclepius over 3 years
    apt-get -y install make worked for me in a Dockerfile.
  • dwlz
    dwlz almost 3 years
    @Acumenus Whether it worked in a Dockerfile or not, it doesn't currently work in Ubuntu Focal 20.04. The Dockerfile you were using could have been using an image from any version of Ubuntu, so this statement isn't very helpful to others.