Open ChinaParrot opened 8 years ago
@jqlinux 这个问题解决了吗?
这个问题解决了,原因是: 2e3e8a9e147a0446b5097976695fa6cc5cb6f17这次提交的代码可能有BUG,在centos 64位上会出现上述问题。
解决方法是: 1、获取2e3e8a9e147a0446b5097976695fa6cc5cb6f17之前提交的ngx_http_auth_ldap_module.c的文件 2、把获取到ngx_http_auth_ldap_module.c文件,复制到nginx_auth_ldap目录下 3、在nginx目录下再执行 ./configure --prefix=/usr/local/nginx --add-module=../nginx-auth-ldap make && make install 4、启动nginx,验证,登录可用
cc1: warnings being treated as errors ../nginx-auth-ldap-master/ngx_http_auth_ldap_module.c:38: 错误:‘#pragma GCC diagnostic’后选项未知 make[1]: * [objs/addon/nginx-auth-ldap-master/ngx_http_auth_ldap_module.o] 错误 1 make[1]: Leaving directory `/root/soft/packages/nginx-1.5.1' make: * [build] 错误 2