LNMP安装报错

问答中心分类: LinuxLNMP安装报错
qq157cml960722 asked 5 年 ago

./configure: error: the HTTP gzip module requires the zlib library.
You can either disable the module by using --without-http_gzip_module
option, or install the zlib library into the system, or build the zlib library
statically from the source with nginx by using --with-zlib=<path> option. make: *** No rule to make target `build', needed by `default'. Stop.
Nginx install failed, Please Contact the author!
已杀死
[root@ReMaster01 lnmp]#
[root@ReMaster01 lnmp]# /bin/cp: cannot stat `../init.d/Nginx-init-CentOS': No such file or directory
sed: can't read /etc/init.d/nginx: No such file or directory
error reading information on service nginx: No such file or directory
error reading information on service nginx: No such file or directory
mv: cannot stat `/usr/local/nginx/conf/nginx.conf': No such file or directory
/bin/cp: cannot stat `../config/nginx_apache.conf': No such file or directory
include/nginx.sh: line 63: /usr/local/nginx/conf/proxy.conf: No such file or directory
sed: can't read /usr/local/nginx/conf/nginx.conf: No such file or directory
sed: can't read /usr/local/nginx/conf/nginx.conf: No such file or directory
sed: can't read /usr/local/nginx/conf/nginx.conf: No such file or directory
nginx: unrecognized service

Question Tags:

6 Answers

Best Answer

oneinstack answered 5 年 ago
操作系统详细版本多少?

qq157cml960722 answered 5 年 ago

谢谢回答,CentOS 6版本Linux ReMaster01 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

oneinstack answered 5 年 ago
手工安装下zlib能否成功?
yum -y install zlib-devel zlib

qq157cml960722 answered 5 年 ago
已经安装过了的

oneinstack answered 5 年 ago
测试centos6.9 没有问题!

qq157cml960722 answered 5 年 ago
好的,谢谢反馈