centos6.8下安装搭建apache环境是出现 make: *** No targets specified and no makefile found. Stop.的解决方案

来源:互联网 发布:淘宝设计美工招聘 编辑:程序博客网 时间:2024/05/21 01:30

我们在Linux 安装包的时候,使用make 命令出现:"make:*** No targets specified and no makefile found.Stop."这样的错误提示。

我们有三种方式可以尝试解决:

第一种:

第一、update最新版本系统软件

yum update

这个必须要执行后才可以安装我们的系统软件或者一键包。

第二、编译缺失关联软件

yum install gcc build-essential

编译执行完毕之后,我们在执行./configure && make这类的执行命令就可以解决问题。


第二种:

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

复制代码
 1 [root@localhost Python-3.4.3]# ./configure  2 checking build system type... x86_64-unknown-linux-gnu 3 checking host system type... x86_64-unknown-linux-gnu 4 checking for --enable-universalsdk... no 5 checking for --with-universal-archs... no 6 checking MACHDEP... linux 7 checking for --without-gcc... no 8 checking for gcc... no 9 checking for cc... no10 checking for cl.exe... no11 configure: error: in `/home/lpf/Python-3.4.3':12 configure: error: no acceptable C compiler found in $PATH13 See `config.log' for more details14 [root@localhost Python-3.4.3]# make15 make: *** No targets specified and no makefile found.  Stop.
复制代码

# yum install gcc gcc-c++ autoconf automake

安装成功以后就可以用传统的./configure和make,sudo make install安装了



第三种:

一、Linux下各种依赖都已经安装,是因为没有找到makefile。

如果是自己写的,确定在当前目录下;如果是源码安装,先运行./configure,生成makefile,再执行make,即可正常运行。


二、如果没有安装其他依赖先安装依赖

yum install gcc gcc-c++ autoconf automake

yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel (安装依赖zlib、openssl和pcre)



第一、update最新版本系统软件

apt-get update

这个必须要执行后才可以安装我们的系统软件或者一键包。

第二、编译缺失关联软件

apt-get install gcc build-essential

编译执行完毕之后,我们在执行./configure && make这类的执行命令就可以解决问题。


补充二:可能是因为没有安装gcc     是用来编译c程序 c++程序的,  

yum-y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-develfreetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-develglib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devele2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel opensslopenssl-devel openldap openldap-devel nss_ldap openldap-clientsopenldap-servers


补充三:


wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz
tar zxvf ncurses-5.6.tar.gz
 ./configure -prefix=/usr/local -with-shared -without-debug
make
make install






阅读全文
0 0
原创粉丝点击