nginx在make的时候报错

问题遇到的现象和发生背景

https://www.cnblogs.com/pxstar/p/14808244.html
根据此篇文章安装,但是我用的是1.18的
nginx 在make编译的时候报错,在网上找不到答案

用代码块功能插入代码,请勿粘贴截图

make -f objs/Makefile
make[1]: 进入目录“/usr/local/nginx/nginx-0.1.18”
gcc -c -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs
-o objs/src/os/unix/ngx_files.o
src/os/unix/ngx_files.c
src/os/unix/ngx_files.c: 在函数‘ngx_write_chain_to_file’中:
src/os/unix/ngx_files.c:160:34: 错误:‘IOV_MAX’ undeclared (first use in this function); did you mean ‘PTY_MAX’?
while (cl && vec.nelts < IOV_MAX) {
^~~~~~~
PTY_MAX
src/os/unix/ngx_files.c:160:34: 附注:每个未声明的标识符在其出现的函数内只报告一次
make[1]: *** [objs/Makefile:473:objs/src/os/unix/ngx_files.o] 错误 1

我的解答思路和尝试过的方法

尝试修改IOV_MAX 改成PTY_MAX ,但是改完一个文件又报错又要求改另一个文件

我想要达到的结果

解决报错,把nginx安装好

已解决:
按照这个方法不对,pcre会出现问题:https://www.cnblogs.com/pxstar/p/14808244.html
按照这个方法是对的,可以参考:https://www.runoob.com/linux/nginx-install-setup.html?_t_t_t=0.7126687248497041