"make: *** No targets specified and no makefile"

935 阅读1分钟

今天在centos服务器中安装cmake时,发现按照网上安装提示的方法:先下载cmake->解压缩->进入目录->执行./configure,在输入make和make install,会出现“make: *** No targets specified and no makefile”错误。经过自己的实验,找到了如下总结和解决方法。 错误不在make,在于上一步./configure。并未完全配置好对应的make所需要的文件,上面有几个提示“no”的,代表缺少扩展 解决方法: yum -y install gcc gcc-c++ autoconf automake yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel (安装依赖zlib、openssl和pcre) 在执行./configure命令。 问题成功解决,可以继续执行make make install命令了。 我用的是centos,其他系统请使用对应的安装方式。