lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


G'day,

I currently use LuaRocks 3.7.0 on `Arch.: linux-x86_64`
systems:

    # Gentoo:
        $ luarocks --version
        /usr/local/bin/luarocks 3.3.1
        LuaRocks main command-line interface

    # linuxmint:
        $ luarocks --version
        /usr/local/bin/luarocks 3.7.0
        LuaRocks main command-line interface

----

Machine configuration details:

This has been compiled from source on an x86_64 (amd64)
GNU/Linux machine, and this version has been shown to work
well under Gentoo Linux, Debian, Ubuntu and GNU/Linux Mint,
as well as CentOS 7 and 8 (mostly as part of my "lglicua"
SourceForge project).

Pathways for LuaRocks is set in a Profile file,
`/etc/profile/d/17-luarocks-3.7.0-limited-paths.sh`.  This has
come from the `luarocks path --no-bin` output, after
installation.

        export LUA_PATH='/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;./?.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;/usr/lib64/lua/5.1/?.lua;/usr/lib64/lua/5.1/?/init.lua;/root/.luarocks/share/lua/5.1/?.lua;/root/.luarocks/share/lua/5.1/?/init.lua'

        export LUA_CPATH='/usr/local/lib/lua/5.1/?.so;./?.so;/usr/lib64/lua/5.1/?.so;/usr/lib64/lua/5.1/loadall.so;/root/.luarocks/lib/lua/5.1/?.so'


As sudo is used to install, `luarocks path` is potentially
tainted with `/root/.luarocks/bin` for non-root users...
but there's no  /root/.luarocks directory at all.

`which luarocks` with 3.7.0 gives `/usr/local/bin/luarocks`.

----

I encountered problems installing the newly-released
LuaRocks 3.8.0 (announced just a few days ago, on 9 November
2021).  I'm still trying to untangle the automated
installation with manually following documentation steps,
but am currently stalled: running `/usr/local/bin/luarocks` 
after the 3.8.0 installation steps still gives `3.7.0` as the
version... 

-- and following operations are (perhaps not surprisingly)
unstable/error-prone.

----

The GitHub wiki has detailed explanations for how to
download, unpack, configure, build, install and use
LuaRocks.  These pages often reference older versions of
LuaRocks, e.g.:

    URL:      https://github.com/luarocks/luarocks/wiki/Installation-instructions-for-Unix
    LuaRocks: 3.3.1

    URL:      https://luarocks.org/#quick-start
    LuaRocks: 3.7.0

----

I believe that sorting this situation out may be an
iterative process.  As a start, updating the documentation
would be welcome:  For example the "Installation instructions
for Unix" starts by saying `get the latest ".tar.gz" package here`,
but then gives explicit commands for download/unpack/chdir for
the older version `3.3.1`.

--

Thanks in advance for your consideration,

s-b etc etc