openresty / openresty/lua-nginx-module

checking for LuaJIT 2.x not found

Open
#1,834 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
11.8k
Forks
2.1k
Avg merge
6h 1m
Merged PRs (30d)
6

Description

Dockerfile.txt

ng:1.19.3

ADD https://github.com/openresty/luajit2/archive/v2.1-20201027.tar.gz
#ngx_devel_kit(NDK)模块
ADD https://github.com/simpl/ngx_devel_kit/archive/v0.3.0.tar.gz
#lua-nginx-module 模块
ADD https://github.com/openresty/lua-nginx-module/archive/v0.10.19.tar.gz

报错信息 module in /usr/local/src/lua-nginx-module-0.10.19
checking for LuaJIT 2.x ... not found
./configure: error: unsupported LuaJIT version; ngx_http_lua_module requires LuaJIT 2.x.
The command '/bin/sh -c cd /tmp/nginx-1.19.3 && ./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --error-log-path=/usr/local/nginx/logs/error.log --http-log-path=/usr/local/nginx/logs/access.log --pid-path=/usr/local/nginx/logs/nginx.pid --lock-path=/var/lock/nginx.lock --with-ld-opt="-Wl,-rpath,/usr/local/luajit/lib" --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --add-module=/usr/local/src/lua-nginx-module-0.10.19 --add-module=/usr/local/src/ngx_devel_kit-0.3.0 --add-module=/usr/local/src/ngx_cache_purge-2.3 && make && make install' returned a non-zero code: 1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure using Dockerfile.txt and the shown NGINX ./configure command. Start by checking how LuaJIT 2.x is built and installed before lua-nginx-module configuration runs; done means ./configure recognizes the installed LuaJIT version and the image build proceeds past this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, lua, nginx
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.