make***没有指定目标,也没有找到makefile.停

Nan*_*ani 25 makefile

我在安装包时遇到问题dionaea.

我输入后:

./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
Run Code Online (Sandbox Code Playgroud)

下一步是:

#make
Run Code Online (Sandbox Code Playgroud)

出现错误消息: make: *** No targets specified and no makefile found. Stop.

我的目录是 /usr/local/src

Tie*_*Dad 16

make将makefile作为输入.Makefile通常是命名makefileMakefile.该configure命令应生成一个makefile,以便make可以依次执行.检查是否在工作目录下生成了makefile.

  • 是的,有Makefile.am和Makefile.in那么如何解决呢?:) (3认同)
  • FWIW,OP的主题让我来到这里,我的解压缩的目录树即使用`configure.ac`文件和`Makefile.in`存在也无法识别`./configure` - 解决方案 - >我必须运行` autoconf`首先,然后**`./ configure`和`make`成功. (3认同)

小智 7

运行make clean然后./configure应该解决你的问题.

  • 如果没有 makefile,“make clean”将如何工作? (11认同)

小智 5

我遇到了同样的错误,我通过查看此站点的解决方案修复了它:

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

那么运行“./configure”后您是否遇到任何错误?也许是因为缺少 tclConfig.sh。如果是这样,您必须先搜索 tclConfigure.sh,然后将其放入命令中,而不是运行“./configure”,在我的例子中,它位于 /usr/lib/ 中。然后运行: ' ./configure ----with-tcl=/usr/lib --with-tclinclude=/usr/include '