错误一:安装nginx报错“src/os/unix/ngx_user.c:26:7: error: 'struct crypt_data’ has no member named 'current_salt’”
“src/os/unix/ngx_user.c:26:7: error: 'struct crypt_data’ has no member named 'current_salt’”
如果没有改下面错误二的“-Werror”,先把按照错误二改好
试运行make或者sudo make install
如果依然报错,就进去报错目录下,打开指定的报错文件,将报错行注释
错误二:
src/core/ngx_murmurhash.c:37:11: error: this statement may fall through [-Werror=implicit-fallthrough=]
h ^= data[2]<<16;~~^~~~~~~~~~~~~~~~
src/core/ngx_murmurhash.c:38:5: note: here
case2:^~~~
src/core/ngx_murmurhash.c:39:11: error: this statement may fall through [-Werror=implicit-fallthrough=]
h ^= data[1]<<8;~~^~~~~~~~~~~~~~~
src/core/ngx_murmurhash.c:40:5: note: here