当前位置: 技术问答>linux和unix
make: *** 没有指明目标并且找不到 makefile。 停止。
来源: 互联网 发布时间:2016-10-29
本文导语: 我在安装软件时出现make: *** 没有指明目标并且找不到 makefile。 停止。,请问如何解决啊。 源码如下: arkor@ubuntu:/tmp/aMule-2.2.6$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build enviro...
我在安装软件时出现make: *** 没有指明目标并且找不到 makefile。 停止。,请问如何解决啊。
源码如下:
arkor@ubuntu:/tmp/aMule-2.2.6$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking if this is a FreeBSD 4 or earlier system... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.
arkor@ubuntu:/tmp/aMule-2.2.6$ make
make: *** 没有指明目标并且找不到 makefile。 停止。
arkor@ubuntu:/tmp/aMule-2.2.6$ ls
ABOUT-NLS automake install-sh
acinclude.m4 Compilation.flags.in intl
aclocal.m4 compile m4
aMule.app config.guess Makefile.am
amule_build_install.sh config.h.in Makefile.in
amule.desktop config.log missing
amulegui.desktop config.rpath mkinstalldirs
amulegui.xpm config.sub MSVC Solution
amule.ico configure po
amule.png configure.in README.Debian-Packages
amule.rc convert.ico src
aMule.spec debian unittests
amule.xpm depcomp untars
autogen.sh docs version.rc.in
arkor@ubuntu:/tmp/aMule-2.2.6$
源码如下:
arkor@ubuntu:/tmp/aMule-2.2.6$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking if this is a FreeBSD 4 or earlier system... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.
arkor@ubuntu:/tmp/aMule-2.2.6$ make
make: *** 没有指明目标并且找不到 makefile。 停止。
arkor@ubuntu:/tmp/aMule-2.2.6$ ls
ABOUT-NLS automake install-sh
acinclude.m4 Compilation.flags.in intl
aclocal.m4 compile m4
aMule.app config.guess Makefile.am
amule_build_install.sh config.h.in Makefile.in
amule.desktop config.log missing
amulegui.desktop config.rpath mkinstalldirs
amulegui.xpm config.sub MSVC Solution
amule.ico configure po
amule.png configure.in README.Debian-Packages
amule.rc convert.ico src
aMule.spec debian unittests
amule.xpm depcomp untars
autogen.sh docs version.rc.in
arkor@ubuntu:/tmp/aMule-2.2.6$
|
你没有安装c和c++编译器。
sudo apt-get install build-essential
sudo apt-get install build-essential
|
是的,错误信息有提示了:
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
按主席的方法安装编译器。
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
按主席的方法安装编译器。
|
安装Ubuntu之后, 第一件事请就是先更先下软件包。啥问题都没了。
|
./configure是对环境和文件的依赖检查,上面的提示已经很清楚了,哪些有,哪些没有。如果要是make成功的话说明那些依赖提示是no的可以忽略。要是make不成功,就要安装那些提示no信息的文件。。。
|
啥编译器都没有make啥嘛
|
error: C++ compiler cannot create executables
没有C++编译
没有C++编译
|
主席人挺好的,虽然严厉了点
|
你怎么学习总是这么盲目 认真一点 界面上输出什么你也得大概看一吧? ./configure之后都出错了
结果你还继续make?
结果你还继续make?