lua-users home
lua-l archive

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


Hello,

I'm on MX Linux, using Lua 5.3.3, which is installed under /usr/local. There is also a Lua 5.1 in /usr, which I don't use, but some system software appears to need that.
Whe I try to compile LuaRocks 3.0.1, this happens:

-------------------------------------

Configuring LuaRocks version 3.0.1...

Lua interpreter found: /usr/local/bin/lua
Checking if /usr/local/bin/lua is Lua version 5.3... yes
lua.h found: /usr/local/include/lua.h
unzip found in PATH: /usr/bin

Done configuring.

LuaRocks will be installed at......: /usr/local
LuaRocks will install rocks at.....: /usr/local
LuaRocks configuration directory...: /usr/local/etc/luarocks
Using Lua from.....................: /usr/local

* Type make and make install:
  to install to /usr/local as usual.
* Type make bootstrap:
  to install LuaRocks into /usr/local as a rock.

mkdir -p "build"
rm -f src/luarocks/core/hardcoded.lua
echo "#!/bin/sh" > luarocks
echo "unset LUA_PATH LUA_PATH_5_2 LUA_PATH_5_3 LUA_PATH_5_4" >> luarocks
echo 'LUAROCKS_SYSCONFDIR="/usr/local/etc/luarocks" LUA_PATH="/home/soft/luarocks/luarocks-3.0.1/src/?.lua;;" exec "/usr/local/bin/lua" "/home/soft/luarocks/luarocks-3.0.1/src/bin/luarocks" --project-tree="/home/soft/luarocks/luarocks-3.0.1/lua_modules" "$@"' >> luarocks
chmod +rx ./luarocks
./luarocks init
/usr/local/bin/lua: /home/soft/luarocks/luarocks-3.0.1/src/bin/luarocks:7: module 'luarocks.cmd' not found:No LuaRocks module found for luarocks.cmd
	no field package.preload['luarocks.cmd']
	no file './luarocks/cmd.lua'
	no file '/home/bernd/lua/lib/luarocks/cmd.lua'
	no file '/usr/local/share/lua/5.3/luarocks/cmd.lua'
	no file '/usr/local/share/lua/5.3/luarocks/cmd/init.lua'
	no file '/usr/local/lib/lua/5.3/luarocks/cmd.lua'
	no file '/usr/local/lib/lua/5.3/luarocks/cmd/init.lua'
	no file '/usr/local/lib/luarocks/rocks/luarocks/cmd/luarocks/cmd.lua'
	no file '/usr/local/share/lua/5.3luarocks/cmd.lua'
	no file '/root/.luarocks/share/lua/5.3/luarocks/cmd.lua'
	no file '/root/.luarocks/share/lua/5.3/luarocks/cmd/init.lua'
	no file '/usr/local/lib/lua/5.3/luarocks/cmd.so'
	no file '/usr/local/lib/lua/5.3/loadall.so'
	no file '/usr/lib/x86_64-linux-gnu/luarocks/cmd.so'
	no file '/root/.luarocks/lib/lua/5.3/luarocks/cmd.so'
	no file '/usr/local/lib/lua/5.3/luarocks.so'
	no file '/usr/local/lib/lua/5.3/loadall.so'
	no file '/usr/lib/x86_64-linux-gnu/luarocks.so'
	no file '/root/.luarocks/lib/lua/5.3/luarocks.so'
stack traceback:
	[C]: in function 'require'
	/home/soft/luarocks/luarocks-3.0.1/src/bin/luarocks:7: in main chunk
	[C]: in ?
GNUmakefile:50: recipe for target 'luarocks' failed
make: *** [luarocks] Error 1

-------------------------------------

There is no cmd.lua or cmd.so in my file system.
What am I missing?

Thanks for any help,
Bernd