hishamhm on master
Release 3.9.1 Merge branch '3.9.1' (compare)
...
used for the url something standard ? I dont see it listed at https://github.com/luarocks/luarocks/wiki/Rockspec-format
lua_modules
? I'm running lua 5.3 and luarocks 3.7.0. thanks
#!/bin/sh
LUAROCKS_SYSCONFDIR='/usr/local/etc/luarocks' exec '/usr/bin/lua5.3' -e 'package.path="/home/mrtn/.luarocks/share/lua/5.3/?.lua;/home/mrtn/.luarocks/share/lua/5.3/?/init.lua;/usr/local/share/lua/5.3/?.lua;/usr/local/share/lua/5.3/?/init.lua;"..package.path;package.cpath="/home/mrtn/.luarocks/lib/lua/5.3/?.so;/usr/local/lib/lua/5.3/?.so;"..package.cpath' $([ "$*" ] || echo -i) "$@"
that's the one i got on a fresh init
luarocks upload
(and maybe luarocks new_version
to generate a new rockspec?) and storing your API key as an environment secret
Installing https://luarocks.org/lua-requests-1.2-2.src.rock
Missing dependencies for lua-requests 1.2-2:
xml (not installed)
luasec >= 0.5.1, < 0.8-1 (1.0.2-1 installed)
lua-requests 1.2-2 depends on xml (not installed)
Installing https://luarocks.org/xml-1.1.3-1.src.rock
Error: Failed installing dependency: https://luarocks.org/xml-1.1.3-1.src.rock - Could not find library file for STDCPP
No file libstdc++.a in /data/data/com.termux/files/usr/local/lib
No file libstdc++.a in /data/data/com.termux/files/usr/local/lib64
No file libstdc++.so in /data/data/com.termux/files/usr/local/lib
No file libstdc++.so in /data/data/com.termux/files/usr/local/lib64
No file matching libstdc++.so.* in
/data/data/com.termux/files/usr/local/lib
No file matching libstdc++.so.* in
/data/data/com.termux/files/usr/local/lib64
No file libstdc++.a in /data/data/com.termux/files/usr/lib
No file libstdc++.a in /data/data/com.termux/files/usr/lib64
No file libstdc++.so in /data/data/com.termux/files/usr/lib
No file libstdc++.so in /data/data/com.termux/files/usr/lib64
No file matching libstdc++.so.* in /data/data/com.termux/files/usr/lib
No file matching libstdc++.so.* in /data/data/com.termux/files/usr/lib64
You may have to install STDCPP in your system and/or pass STDCPP_DIR or STDCPP_LIBDIR to the luarocks command.
Example: luarocks install xml STDCPP_DIR=/usr/local
@dauuricus why you don't install the luarocks and lua packages for termux? Termux is a little tricky as it is not a standard OS environment, just a workaround to use Unix/Linux packages and provide a terminal under Android. So... the the compilations have to follow specific configuration that may be not the scope of the Luarocks developers.
You can install Lua and Luarocks with:pkg install luarocks lua53
Note that the termux doesn't create the correct link for interpreter, so you will need to do it by hand:
ln -sf /data/data/com.termux/files/usr/bin/lua5.3 /data/data/com.termux/files/usr/bin/lua`
ln -sf /data/data/com.termux/files/usr/bin/luac5.3 /data/data/com.termux/files/usr/bin/luac`
I dit it in my termux and it's ok.... Then I tried to install cqueues as in your message:
luarocks install cqueues
The error message was:
~ $ luarocks install cqueues
Installing https://luarocks.org/cqueues-20200726.53-0.src.rock
Error: This rockspec for cqueues does not support unix platforms.
It occurs because the package (rock) cqueues says it can be installed in Unix. Maybe you'll need to use other rock instead of http
(as it depends on cqueues) to do what you want if you wanna go with Termux or other Unix platform.
luarocks imstall xml STDCPP_LIBDIR=/system/lib
gcc -O2 -std=gnu99 -fPIC -g -Wall -Wextra -Wno-missing-field-initializers -Wno-initializer-overrides -Wno-unused -Wno-dollar-in-identifier-extension -O2 -fPIC -DLUA_COMPAT_APIINTCASTS -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -I"/data/data/com.termux/files/usr/include" -I"/data/data/com.termux/files/usr/include" -DCOMPAT53_PREFIX=cqueues -DCQUEUES_VENDOR='"quae@daurnimator.com"' -DCQUEUES_VERSION=20200726L -c -o /data/data/com.termux/files/usr/tmp/luarocks_cqueues-20200726.53-0-6994475/cqueues-rel-20200726/src/5.3/cqueues.o /data/data/com.termux/files/usr/tmp/luarocks_cqueues-20200726.53-0-6994475/cqueues-rel-20200726/src/cqueues.c
/data/data/com.termux/files/usr/tmp/luarocks_cqueues-20200726.53-0-6994475/cqueues-rel-20200726/src/cqueues.c:47:10: fatal error: 'lua.h' file not found
#include <lua.h>
^~~~~~~
1 error generated.
eduardas@eduardas-Battlestation:/usr/lib/x86_64-linux-gnu$ ldd liblua5.1-cjson.so.0
linux-vdso.so.1 (0x00007fff7f3cd000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3435d4c000)
/lib64/ld-linux-x86-64.so.2 (0x00007f3436167000)
eduardas@eduardas-Battlestation:~/.luarocks/lib/lua/5.3/posix$ ldd stdio.so
linux-vdso.so.1 (0x00007ffec7cbf000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f09df2a0000)
/lib64/ld-linux-x86-64.so.2 (0x00007f09df4b8000)
eduardas@eduardas-Battlestation:~/.luarocks/lib/lua/5.3/posix$ nm -gD stdio.so
U ctermid
w __cxa_finalize
U __errno_location
U fclose
U fdopen
U fileno
w __gmon_start__
w _ITM_deregisterTMCloneTable
w _ITM_registerTMCloneTable
U lua_createtable
U lua_getfield
U lua_gettop
U lua_isinteger
U luaL_argerror
U luaL_checklstring
U luaL_checkudata
U luaL_checkversion_
U luaL_fileresult
U luaL_setfuncs
U lua_newuserdata
0000000000001860 T luaopen_posix_stdio
U lua_pushfstring
U lua_pushinteger
U lua_pushnil
U lua_pushstring
U lua_setfield
U lua_setmetatable
U lua_settop
U lua_tointegerx
U lua_tolstring
U lua_type
U lua_typename
U rename
U __stack_chk_fail
U strerror