Celeb Glow
news | March 29, 2026

"make" and "make install" never work [closed]

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?

11

3 Answers

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)

0

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

sudo apt install autoconf && autoreconf -ivf

Maybe when you build you do that as a user and then you do make install as root but as root you are in another directory.

Solution in this case: as root change directory to your build directory, then: make install

Worked for me in Debian Stretch.