Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
    
yes i have run ./configure –  Nirmik Aug 31 '12 at 19:12

2 Answers 2

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

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.