problem describtion:
src/os/unix/ngx_user.c:26:7: error: ‘struct crypt_data’ has no member named ‘current_salt’
cd.current_salt[0] = ~salt[0];
solution:
first step:
vim src/os/unix/ngx_user.c
注释掉
![]()
second step:
vim objs/Makefile
去掉-Werror

that's all steps.
so the next step,you can use make&&make install successfully.
本文介绍了如何在src/os/unix/ngx_user.c文件中遇到'current_salt'成员缺失的错误,通过注释掉相关代码并调整Makefile,移除-Werror选项,成功解决问题,确保编译安装流程顺利进行。
3813

被折叠的 条评论
为什么被折叠?



