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

I have been trying it from a long time now and this time it got my nerves.

The commands make and make install used to install a program from an extracted tar ball never work for some reason.

The make command gives me the error:

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

and the make install command gives me the error:

  make: *** No rule to make target `install'.  Stop.

Why are these commands not executing? What should I do to solve this issue?

share|improve this question
    
And how are you running those commands? Give an example, for instance, cd foo/, ./make .... – LnxSlck Aug 31 '12 at 18:59
    
no just make and make install – Nirmik Aug 31 '12 at 19:08
    
yes i am compiling from a tar ball...and its properly mentioned on its readme – Nirmik Aug 31 '12 at 19:11
    
its there...makefile.in and makefile.am....both are there – Nirmik Aug 31 '12 at 19:12
1  
@Nirmik - please edit your question with all of the above and clean up by deleting your comments. Thanks. – fossfreedom Aug 31 '12 at 19:38

I think the problem is that you haven't got the dependencies for the program in question, as even though you have run ./configure there are just the files called makefile.in and makefile.am, whereas there should be a a file called Makefile without an extension.

If you run ./configure without the dependencies, it does not generate a makefile and then running make afterwards gives exactly the error you are getting:

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

Therefore, download the build dependencies for your program by looking at the readme included in the download or if the program source is in the repositories and you have enabled the source repositories, run

sudo apt-get build-dep program

After obtaining the dependencies, run ./configure again and now make and make install should work as there will be a proper Makefile generated.

(You may also need to install such packages as build-essential which contains essential compiling tools)

share|improve this answer
    
@Nirmic Please consider accepting an answer, for example this one, if it helped you to solve your problem. Or did it not work? Thanks. – Byte Commander Oct 5 '15 at 6:31

Sometimes one needs to run autoreconf to generate the configure script, so use:

autoreconf -ivf
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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