Ubuntn安装nginx问题解决
秋水 Lv4
  1. 出现”struct crypt_data”没有名为”current_salt”成员的错误

    1

​ 解决方案:进入相应路径,将源码的第36行注释

然后继续make && make install

  1. 出现-Werror=cast-function-type错误

3

解决方案

1
2
3
4
#进入nginx目录下的objs目录
cd ./objs
#修改makefile文件
sudo vi Makefile

4

去除掉 –Werror

继续make && make install

  • Post title:Ubuntn安装nginx问题解决
  • Post author:秋水
  • Create time:2024-04-05 20:55:48
  • Post link:tai769.github.io2024/04/05/Ubuntn安装nginx问题解决/
  • Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.