lua-build icon indicating copy to clipboard operation
lua-build copied to clipboard

bin/lua-build: line 144: pushd: luajit-2.1.0-beta2: No such file or directory

Open devurandom opened this issue 8 years ago • 1 comments
trafficstars

I am trying to build luajit-2.1.0-beta2 using luaenv install, which fails with following message:

Downloading luajit-2.1.0-beta2.tar.gz...
-> http://luajit.org/download/LuaJIT-2.1.0-beta2.tar.gz                                         
/opt/luaenv/plugins/lua-build/bin/lua-build: line 144: pushd: luajit-2.1.0-beta2: No such file or directory

This is an excerpt from my Dockerfile:

ENV LUAENV_ROOT=/opt/luaenv \
    PATH=/opt/luaenv/bin:$PATH

RUN ...
    && git clone https://github.com/cehoffman/luaenv.git ${LUAENV_ROOT} && cd ${LUAENV_ROOT} && git checkout ${LUAENV_VERSION} \
    && git clone git://github.com/cehoffman/lua-build.git ${LUAENV_ROOT}/plugins/lua-build && cd ${LUAENV_ROOT}/plugins/lua-build && git checkout ${LUAENV_BUILD_VERSION} \
    && git clone https://github.com/xpol/luaenv-luarocks.git ${LUAENV_ROOT}/plugins/luaenv-luarocks && cd ${LUAENV_ROOT}/plugins/luaenv-luarocks && git checkout ${LUAENV_LUAROCKS_VERSION} \
    && cd \
    && eval "$(luaenv init -)" \
    && for v in ${LUA_VERSIONS} ; do \
        if ! luaenv install ${v} ; then \
            cat /tmp/lua-build.*.log ; \
            exit 1 ; \
        fi ; \
    done \

devurandom avatar Apr 01 '17 10:04 devurandom

This fixes it: sed 's/luajit-2/LuaJIT-2/' -i share/lua-build/luajit-2.1.0-beta2

devurandom avatar Apr 01 '17 10:04 devurandom