saz
saz

Reputation: 1015

Can't find the target specified for makefile

First of all I apologize if I'm asking silly question. Because I'm actually out of unix for 8 months. I have installed GMP, libpcap, and Gengetopt which are required to install another application. I used the command below:

sudo apt-get install libgmp3-dev libpcap-dev gengetopt

After that I tried

cd src; make

But it shows that

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

My current directory is home directory.

My questions are:

  1. Are those packages not installed properly?
  2. Is my makefile target directory wrong?

Upvotes: 1

Views: 5056

Answers (2)

Uku Loskit
Uku Loskit

Reputation: 42050

It depends on the application, but quite often you will have to run configure before you can actually build the application. You do not need root permission for the make step, but for the make install step which usually installs the binary globally.

make install is not necessary, but a matter of convenience, so you can still run the application in directory in which it was built.

so try cd src; ./configure && make

Upvotes: 1

cosinuz
cosinuz

Reputation: 41

It sounds like you don't have any Makefile in the current directory when you are entering make. Have you made sure you got one there ?

Upvotes: 0

Related Questions