Skip to content

OpenResty was compiled without PCRE support #1672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sunnykandy opened this issue Mar 19, 2020 · 2 comments
Closed

OpenResty was compiled without PCRE support #1672

sunnykandy opened this issue Mar 19, 2020 · 2 comments

Comments

@sunnykandy
Copy link

2020/03/19 14:33:05 [error] 10356#19508: *1 lua entry thread aborted: runtime error: D:\nginxProject\src\build\build\bin\lua\resty\http.lua:17: no support for 'ngx.re.match': OpenResty was compiled without PCRE support
stack traceback:
coroutine 0:
[C]: in function 'require'
./src/utils/static_concat_req.lua:2: in main chunk, client: 192.168.10.18, server: www.mhool.com, request: "GET /apps HTTP/2.0", host: "www.mhool.com"

@rainingmaster
Copy link
Member

rainingmaster commented Mar 29, 2020

I think it is obvious, this error from the regex module, and it check this function exists or not.

Maybe you can check have you install the PCRE in your machine which built the openresty, and you can use nginx -V 2>&1 | grep -h pcre to see if the PCRE lib path is included.

By the way, I think this should not be an issue? Maybe we can use the official forum to discuss it, thanks!

@thibaultcha
Copy link
Member

Hi,

There is a known issue with 1.15.8.x builds statically linked against libpcre. Try this workaround for now until 1.17.8.x gets a mainstream release: openresty/lua-resty-core#258 (comment)

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants