make: *** No targets specified and no makefile found. Stop解决方法

今天在linux服务器中安装安装pcre时,发现按照网上安装提示的方法:先下载->解压缩->进入目录->执行./configure,在输入make和make install,会出现“make: *** No targets specified and no makefile”错误。经过自己的实验,找到了如下总结和解决方法。

输入make和make install 报错误make: *** No targets specified and no makefile found. Stop.
make: *** No targets specified and no makefile found. Stop

解决方法
第一步
尝试先安装依赖
执行
yum -y install gcc gcc-c++ autoconf automake
make: *** No targets specified and no makefile found. Stop

第二步
执行
yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel
make: *** No targets specified and no makefile found. Stop

第三步
执行
./configure
make: *** No targets specified and no makefile found. Stop

然后再试一试输入 make 和 make install
make: *** No targets specified and no makefile found. Stop

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

相关文章: