Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

/usr/bin/perl --all
ERROR: Using 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.
share|improve this question

marked as duplicate by Seth Mar 5 at 4:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Related, though currently also lacking an answer: Bugzilla can't find “make” but it's installed and in my path – ændrük Jul 8 '12 at 5:55

In this situation, the make command is already installed.

# make
make: *** No targets specified and no makefile found.  Stop.

That means make actually ran, but failed because there is no file called Makefile in the current directory.

The problem here is that perl is not able to find make even though it is installed. As ændrük commented, this has been asked on Server Fault. Since ændrük's comment, solutions have been posted there.

According to quanta, this can be fixed by running perl -MCPAN -e shell and then, at the cpan> menu, install Math::Random::Secure.

According to ocach, this can be fixed by running cpan followed by these two commands on the cpan[n] prompt:

o conf make '/usr/bin/make' #or path to your make
o conf commit

I tried ochach's way on my machine, and it seemed to work:

cpan[1]> o conf make '/usr/bin/make'
    make               [/usr/bin/make]
Please use 'o conf commit' to make the config permanent!

cpan[2]> o conf commit
commit: wrote '/home/ek/.cpan/CPAN/'

I recommend trying those techniques; it seems likely one of them will solve your problem.

share|improve this answer

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