i'm trying install luarocks custom location. i've downloaded latest tarball (v2.3.0) , run following ./configure
command:
# openresty_prefix set /opt/openresty ./configure --prefix=$openresty_prefix \ --with-lua=$openresty_prefix/luajit \ --with-lua-include=$openresty_prefix/luajit/include \ --with-lua-lib=$openresty_prefix/lualib
this produces following error:
checking lua interpreter... lua not found (looked in =/opt/openresty/luajit/bin) may want use flag --with-lua or --with-lua-bin. see --help. configure failed.
i first checked /opt/openresty/luajit/bin/lua
invoked interpreter, case. inspected contents of /opt/openresty/luajit/bin
, found following:
$ ls -al /opt/openresty/luajit/bin/ total 2860 drwxr-xr-x 2 root root 4096 jan 9 14:05 . drwxr-xr-x 6 root root 4096 jan 9 14:05 .. lrwxrwxrwx 1 root root 44 jan 9 14:05 lua -> /opt/openresty/luajit/bin/luajit-2.1.0-beta1 lrwxrwxrwx 1 root root 18 jan 9 14:05 luajit -> luajit-2.1.0-beta1 -rwxr-xr-x 1 root root 2918392 jan 9 14:05 luajit-2.1.0-beta1
as can see, lua
, luajit
symlinks point luajit-2.1.0-beta1
. figured make
perhaps struggling symlinks, tried running original command --lua-suffix=jit-2.1.0-beta1
i obtain similar error message, appears when pointing "real" file, make
getting tripped up:
checking lua interpreter... luajit-2.1.0-beta1 not found (looked in =/opt/openresty/luajit/bin) may want use flag --with-lua or --with-lua-bin. see --help. configure failed.
i'm missing fundamental, here. doing incorrectly?
supplementary information
build target
i'm building against debian:jessie
docker image. here corresponding dockerfile
, in case helps reveal directory structure.
from debian:jessie # derived https://github.com/ficusio/openresty/blob/master/debian/dockerfile run apt-get update && apt-get install -y --no-install-recommends \ curl perl make build-essential procps libreadline-dev libncurses5-dev libpcre3-dev libssl-dev env cflags '-o2' env openresty_version 1.9.7.1 env openresty_prefix /opt/openresty env nginx_prefix /opt/openresty/nginx env var_prefix /var/nginx # nginx prefix automatically set openresty $openresty_prefix/nginx # $ngx_prefix in https://github.com/openresty/ngx_openresty/blob/master/util/configure run cd /tmp \ && echo "==> downloading openresty..." \ && curl -ssl http://openresty.org/download/ngx_openresty-${openresty_version}.tar.gz | tar -xvz \ && echo "==> configuring openresty..." \ && cd ngx_openresty-* \ && readonly nproc=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) \ && echo "using upto $nproc threads" \ && ./configure \ --prefix=$openresty_prefix \ --http-client-body-temp-path=$var_prefix/client_body_temp \ --http-proxy-temp-path=$var_prefix/proxy_temp \ --http-log-path=$var_prefix/access.log \ --error-log-path=$var_prefix/error.log \ --pid-path=$var_prefix/nginx.pid \ --lock-path=$var_prefix/nginx.lock \ --with-luajit \ --with-pcre-jit \ --with-ipv6 \ --with-http_ssl_module \ --without-http_scgi_module \ -j${nproc} \ && echo "==> building openresty..." \ && make -j${nproc} \ && echo "==> installing openresty..." \ && make install \ && echo "==> finishing..." \ && ln -sf $nginx_prefix/sbin/nginx /usr/local/bin/nginx \ && ln -sf $nginx_prefix/sbin/nginx /usr/local/bin/openresty \ && ln -sf $openresty_prefix/bin/resty /usr/local/bin/resty \ && ln -sf $openresty_prefix/luajit/bin/luajit-* $openresty_prefix/luajit/bin/lua \ && ln -sf $openresty_prefix/luajit/bin/luajit-* /usr/local/bin/lua \ && apt-get remove -y make build-essential \ && rm -rf /tmp/ngx_openresty* \ && rm -rf /var/lib/apt/lists/* workdir $nginx_prefix # example contents `nginx` directory can found at: # https://github.com/ficusio/openresty/tree/master/_example/nginx onbuild run rm -rf conf/* html/* onbuild copy nginx $nginx_prefix cmd ["nginx", "-g", "daemon off; error_log /dev/stderr info;"]
my guess openresty_prefix
not set /opt/openresty
=/opt/openresty
. given away error message:
checking lua interpreter... lua not found (looked in =/opt/openresty/luajit/bin)
which generated following line:
echo "lua$lua_suffix not found (looked in $lua_bindir)"
you have find out extraneous =
sign comes now. configure
command line, e.g.:
--with-lua==$openresty_prefix/luajit
Comments
Post a Comment