nginx 从源码编译

标签 nginx pcre

我们需要在 nginx 中包含 sticky 指令;所以我们按照此链接 http://nginx.org/en/docs/howto_build_on_win32.html 中的步骤操作.. 但是我们遇到了以下错误:

 In file included from src/core/ngx_core.h:71:0,
        from src/core/nginx.c:9:
 src/core/ngx_regex.h:15:18: fatal error: pcre.h: No such file or directory

这个链接有类似的问题 Error building : fatal error: pcre.h: No such file or directory 但我使用的是最新的 pcre,即 pcre2-10.10

任何人都可以告诉我如何解决这个问题或者我可以从哪个位置下载带有粘性模块的 nginx

最佳答案

只是不要使用 pcre2。你需要像 pcre-8.36 这样的 pcre。

关于nginx 从源码编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32934110/

相关文章:

python - http客户端需要访问nginx两次才能加载css文件

php - 我对 Memcache、Memcached 和 php5-memcache 感到困惑

linux - 设置 WSGI 应用程序时的 PCRE 问题

c++ - 有没有办法从 pcrecpp 获取 PREMATCH ( $`) and POSTMATCH ($' )?

c++ - PCRECPP(pcre)从url代码中提取主机名问题

nginx - 安全 websocket 的协议(protocol)是什么?

php - 使用 Nginx 设置 Laravel

ssl - GitLaB Nginx 在 gitlab-http.conf 中关闭无效值 "+TLSv1.1"

php - 在小于和大于之间分割字符串

php - PCRE:环视的 DEFINE 语句