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

我们在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... no
10 checking for cl.exe... no
11 configure: error: in `/home/lpf/Python-3.4.3':
12 configure: error: no acceptable C compiler found in $PATH
13 See `config.log' for more details
14 [root@localhost Python-3.4.3]# make
15 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






评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值