91名师指路-头部
91名师指路

src/os/unix/ngx_user.c: In function ‘ngx_libc_crypt’: src/os/unix/ngx_user.c:36:7: error: ‘struct cr

由于某些原因,现在不支持支付宝支付,如需要购买源码请加博主微信进行购买,微信号:13248254750

场景:在阿里云centos 8 下安装nginx-1.9.0 报错如下:

src/os/unix/ngx_user.c: In function ‘ngx_libc_crypt’:
src/os/unix/ngx_user.c:36:7: error: ‘struct crypt_data’ has no member named ‘current_salt’
cd.current_salt[0] = ~salt[0];
^
make[1]: *** [objs/Makefile:732: objs/src/os/unix/ngx_user.o] Error 1
make[1]: Leaving directory '/usr/local/java/nginx-1.9.9'
make: *** [Makefile:8: build] Error 2
[root@iZuf6bhe673f5qtkz6pwjuZ nginx-1.9.9]#


解决方案:

方法一:

找到目录/usr/local/java/nginx-1.9.0/src/os/unix/ngx_user.c 文件。将这行代码注释掉即可。cd.current_salt[0] = ~salt[0]; (亲测)

方法二:网上有人说将centos 8 降低到centos 7 能解决这个问题,本人没有试验过。


更改前:

#ifdef __GLIBC__
/* work around the glibc bug */
cd.current_salt[0] = ~salt[0];
#endif


更改后:

#ifdef __GLIBC__
/* work around the glibc bug */
/* cd.current_salt[0] = ~salt[0]; */
#endif




2020-12-01 12:26:55     阅读(3941)

名师出品,必属精品    https://www.91mszl.com

联系博主    
用户登录遮罩层
x

账号登录

91名师指路-底部