67

I have a problem installing package dionaea.

After I type this:

./configure --with-lcfg-include=/opt/dionaea/include/ \
--with-lcfg-lib=/opt/dionaea/lib/ \
--with-python=/opt/dionaea/bin/python3.1 \
--with-cython-dir=/usr/bin \
--with-udns-include=/opt/dionaea/include/ \
--with-udns-lib=/opt/dionaea/lib/ \
--with-emu-include=/opt/dionaea/include/ \
--with-emu-lib=/opt/dionaea/lib/ \
--with-gc-include=/usr/include/gc \
--with-ev-include=/opt/dionaea/include \
--with-ev-lib=/opt/dionaea/lib \
--with-nl-include=/opt/dionaea/include \
--with-nl-lib=/opt/dionaea/lib/ \
--with-curl-config=/opt/dionaea/bin/ \
--with-pcap-include=/opt/dionaea/include \
--with-pcap-lib=/opt/dionaea/lib/ \
--with-glib=/opt/dionaea

and the next step is:

#make

An error message appears: make: *** No targets specified and no makefile found. Stop.

My directory is /usr/local/src

jjrv
  • 4,211
  • 2
  • 40
  • 54
Nani
  • 671
  • 1
  • 5
  • 3
  • git clone git://git.carnivore.it/dionaea.git dionaea – Nani Jan 19 '13 at 09:32
  • Hi Blender, do you know how to solve it? I really need help.. – Nani Jan 19 '13 at 10:09
  • Your source should not be directly in `/usr/local/src` You ought to have the dionaea source in a subdirectory. If you do, you will have to run make in that subdirectory. – altendky Jan 19 '13 at 14:30
  • Okay..Thanks altendky for your help. I'll try it, Because now i've used another method..~.~ – Nani Jan 20 '13 at 03:54
  • Then you will need to configure the configuration file and start it. – Paul Feb 12 '17 at 12:44
  • It would be very helpful if you had mentioned the operating system you were working on. On my mac sometime I have this silly issue that the make command can not find `MakeFile` (with camel like capital letters) but recognizes the `makefile` or vice versa! the best is to look for either of the files in the current directory and run `make -f MakeFile` or `make -f makefile` ... and see if it works properly. – Foad S. Farimani May 11 '18 at 23:37
  • you should check `./configure`'s output log, I saw that my machine lack of `gcc`, so I `apt-get install gcc` and then `./configure` will generate the **makefile**. – Victor Lee Mar 17 '22 at 05:40

20 Answers20

40

make takes a makefile as input. Makefile usually is named makefile or Makefile. The configure command should generate a makefile, so that make could be in turn executed. Check if a makefile has been generated under your working directory.

houbysoft
  • 32,532
  • 24
  • 103
  • 156
TieDad
  • 9,143
  • 5
  • 32
  • 58
  • But before I've install some packet like libpcap,curl,sqlite and etc.. make can be execute. Why when I want to install dionaea in different directory..it doesn't work? – Nani Jan 19 '13 at 09:36
  • 1
    How to check if a make file has been generated under my working directory? Sorry I'm a newbie – Nani Jan 19 '13 at 09:40
  • Just "ls" to see if there is some file named makefile or Makefile. – TieDad Jan 19 '13 at 09:45
  • 25
    Yes there are Makefile.am & Makefile.in Then how to solve it? :) – Nani Jan 19 '13 at 09:48
  • Those are not makefile. They are input or material serving the configure command to generate makefile. – TieDad Jan 19 '13 at 10:41
  • May i know how to create makefile under my working directory? – Nani Jan 19 '13 at 10:45
  • 1
    Your makefile should be created by the configure command. So maybe some problem with the configure command. You need to debug that. – TieDad Jan 19 '13 at 12:08
  • A good `configure` command will be able to find all the libraries rather than requiring that you tell it each and every one. Try running it just a `./configure`. Also, look at the output of both runs for errors. – altendky Jan 19 '13 at 14:46
  • Yepp..Maybe that's a problem with my configure command.I'll double check it.. I've tried it before. Still error..Think will try again later..X_X Thank you all ^^ – Nani Jan 20 '13 at 03:55
  • 10
    FWIW, the OP's subject landed me here, and my unzipped directory tree wouldn't recognize `./configure` even with a `configure.ac` file and `Makefile.in` present -- SOLUTION --> I had to run `autoconf` first, **then** `./configure` and `make` were successful. – jjt Jan 08 '16 at 21:31
  • yes after "./configure" command there is an error "configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries" What should I do next any suggestions? – Sumit May 11 '21 at 20:55
9

running ./configure should solve your problem.

Meir
  • 163
  • 1
  • 5
4

I got the same error and i fixed it by looking at the solution from this site:

http://trac.macports.org/ticket/40476.

SO did you got any error after running './configure' ? Maybe something about lacking tclConfig.sh. If so, instead of running './configure', you have to search for the tclConfigure.sh first and then put it in the command, in my case, its located in /usr/lib/. And then run: './configure ----with-tcl=/usr/lib --with-tclinclude=/usr/include'

Phong Nguyen
  • 51
  • 2
  • 8
3

./configure command should generate a makefile, named makefile or Makefile. if in the directory there is no this file, you should check whether the configure command execute success.

in my case, I configure the apr-util:

./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config

because the --with-apr=/usr/local/apr/bin/apr-1-config, the apr did not install yet, so there configure fail, there did not generate the apr's /usr/local/apr/bin/apr-1-config.

So I install the apr, then configure the apr-util, it works.

aircraft
  • 25,146
  • 28
  • 91
  • 166
2

You had to have something like this:

"configure: error: "Error: libcrypto required."

after your ./configure runs. So you need to resolve noticed dependencies first and then try ./configure once more time and then run make !

Rence
  • 2,900
  • 2
  • 23
  • 40
Fedulov Oleg
  • 67
  • 1
  • 4
1

I recently ran into this problem while trying to do a manual install of texane's open-source STLink utility on Ubuntu. The solution was, oddly enough,

make clean
make
Paul Roub
  • 36,322
  • 27
  • 84
  • 93
mdhansen
  • 384
  • 3
  • 16
0

If after ./configure Makefile.in and Makefile.am are generated and make fail (by showing this following make: *** No targets specified and no makefile found. Stop.) so there is something not configured well, to solve it, first run "autoconf" commande to solve wrong configuration then re-run "./configure" commande and finally "make"

Ben667
  • 1
  • 1
0

Delete your source tree that was gunzipped or gzipped and extracted to folder and reextract again. Supply your options again

./configure --with-option=/path/etc ...

Then if all libs are present, your make should succeed.

Vijay Kumar Kanta
  • 1,111
  • 1
  • 15
  • 25
0

This may happen if there is any read and write permission denial to the user. Like C:\Windows\System32\ have restricted access and you are cloned and trying to make from such restricted directory.

Kokul Jose
  • 1,384
  • 2
  • 14
  • 26
0

If you create Makefile in the VSCode, your makefile doesnt run. I don't know the cause of this issue. Maybe the configuration of the file is not added to system. But I solved this way. delete created makefile, then go to project directory and right click mouse later create a file and named Makefile. After fill the Makefile and run it. It will work.

Deniz Babat
  • 205
  • 2
  • 6
0

Try

make clean
./configure --with-option=/path/etc
make && make install
MD SHAYON
  • 7,001
  • 45
  • 38
0

In my case there was a file Makefile.PL in a database library: http://www.cpan.org/modules/by-module/DBI/DBI-1.630.tar.gz

The following command created the makefile

perl Makefile.PL

After that, make command worked

JRichardsz
  • 14,356
  • 6
  • 59
  • 94
  • in which directory did you executed the make command that worked? did you used c or c++ yet? – Dedy Chaidir Jun 17 '21 at 15:12
  • Inside of DBI-1.630.tar.gz there is a file "Makefile.PL". I use a basic linux shell with default perl installation – JRichardsz Jun 17 '21 at 15:49
  • so you didn't understand the question, the questioner ask why makefile not found in dionaea package not for DBI. Do you know what makefile is? – Dedy Chaidir Jun 18 '21 at 03:13
  • question is related to a missing makefile. I try to help sharing my experience in which I i had the same problem but in another package. In my case `perl Makefile.PL` create the missing makefile – JRichardsz Jun 18 '21 at 04:09
  • well dionaea is NOT perl, its python. – Dedy Chaidir Jun 18 '21 at 08:05
  • well makefile is **not related** to dionaea nor python. Makefile is required by a tool called **make** which is a default utility in linux. If any language(that depend on tools installed in s.o like python) throws an error **no makefile found** it means that in background is executing something related to **make** and its needs the classic makefile. On my case I had the same error, but with perl I could create the makefile from **Makefile.PL** – JRichardsz Jun 18 '21 at 14:19
  • you didn't understand the conversation very well. Where did I mention that makefile is related to dionaea or python? I said, dionaea IS NOT PERL, dionaea is PYTHON. So. where is the relation of PERL Makefile.PL to dionaea which is using PYTHON? did the questioner using PERL? – Dedy Chaidir Jun 19 '21 at 06:46
  • The question problem is related to missing makefile. Again, I showed my expierence because I was able to create the makefile using perl. Where did I mention that PERL is required for dionaea? Read about makefile and make tool to understand why you python app is wrong. MAYBE dionaea needs make tool or perl in a deep level that is not visible for simple users. Good luck! – JRichardsz Jun 19 '21 at 16:12
0

I think that it can mean that ./configure command failed for some reason, in my case it was due to a missing package. So i have used my OS package manager to install required package (autoconf and autoconf-archive in my case), then it worked.

16851556
  • 255
  • 3
  • 11
0

first time try

make clean
make

if these didn't solve your issue you have to install build packages.

debian base

apt-get install build-essential libgtk-3-dev

For RHEL/CentOS

sudo yum install gcc glibc glibc-common gd gd-devel -y
Evandro Pomatti
  • 13,341
  • 16
  • 97
  • 165
hassanzadeh.sd
  • 3,091
  • 1
  • 17
  • 26
0

Step 1: Install the Required Dependencies

First, launch the Terminal and run the commands below to install the required dependencies and libraries.

sudo apt install autoconf automake libpcre3-dev libnl-3-dev libsqlite3-dev libssl-dev ethtool build-essential g++ libnl-genl-3-dev libgcrypt20-dev libtool python3-distutils

sudo apt install -y pkg-config

Step 2: Compile and Install

Now, run the commands below (one by one in order) to compile the source code and install Your Repo on your system. [Before this enter you directory ex: cd folder_name]

sudo autoreconf -i

sudo ./configure --with-experimental --with-ext-scripts

sudo make

sudo make install

I hope this time problem will be solved.

0

You need to check the output of the configure command. Mine contained this error:

configure: error: in `/home/ubuntu/build/php-8.0.19':
configure: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Then I googled the error and solved it.

Black
  • 18,150
  • 39
  • 158
  • 271
0

Before running "make" you need to configure your build using "CMake" Try: cmake .

Noob
  • 73
  • 1
  • 8
0

Creating Makefile in the VScode did not worked for me. So, delete the make file created in the VS code, go to the project directory and create file add all the commands in it and name it as Makefile and save. Then try to execute it in VS code. It will work. Don't know why it doesn't work with VS code.

0

I was getting the same error, and found out that the makefile has to be named "makefile" or "Makefile" without a file name extention (.mk). Make doesn't find the file if the case is different on my system. (windows with mingw32-make)

  • Maybe this is not specific enough for the question, but this is the post that google shows if you search for the error message. Maybe it should link to another more general post? – Nicolay Maeland Aug 24 '23 at 10:05
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Aug 31 '23 at 04:35
-1

Unpack the source from a working directory and cd into the file directory as root. Use the commands ./configure then make and make install

Paul
  • 1
  • 1
    I dislike the suggestion to run configure and make as root. Also, the OP says this is what he is doing: he ran configure but it didn't result in the creation of a Makefile. – Carlo Wood Feb 12 '17 at 13:01