安装 nginx 报以下错误:make: *** No rule to make target `build‘, needed by `default‘. Stop.
【代码】安装 nginx 报以下错误:make: *** No rule to make target `build‘, needed by `default‘. Stop.
·
解决方案如下:
1、执行下边命令:
yum -y install make zlib-devel gcc-c++ libtool openssl openssl-devel
2、重新configure,执行下边命令:
./configure --user=nobody --group=nobody --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_gzip_static_module --with-http_realip_module --with-http_sub_module --with-http_ssl_module
3、重新编译,执行下边命令:
make && make install
完美解决!
更多推荐
所有评论(0)