×

make 命令出现:"make:*** No targets specified and no makefile found.Stop."

hqy hqy 发表于2022-11-19 11:33:39 浏览256 评论0

抢沙发发表评论

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


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


第一种:


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


yum update


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


第二、编译缺失关联软件


yum install gcc build-essential


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



第二种:


一、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 



 您阅读本篇文章共花了: 

打赏

本文链接:https://kinber.cn/post/3035.html 转载需授权!

分享到:


推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

群贤毕至

访客