Hi there! Is everything ok with luarocks? Your build pipelines are failing with failures fetching rock files:
Example:Error: Failed installing dependency: https://luarocks.org/kong-plugin-grpc-web-0.2.0-0.src.rock - Could not fetch rock file: Error fetching file: Failed downloading https://luarocks.org/kong-plugin-grpc-web-0.2.0-0.src.rock - kong-plugin-grpc-web-0.2.0-0.src.rock
The failing fetch is allways different
Hi all, trying to get LuaRocks working on MacOS
`sh-3.2# luarocks --lua-dir /usr/local/bin --lua-version 5.1 config variables.LUA_LIBDIR /usr/local/lib/
Wrote
variables.LUA_LIBDIR = "/usr/local/lib/"
to
/var/root/.luarocks/config-5.1.lua
sh-3.2# luarocks --lua-dir /usr/local/bin --lua-version 5.1 config variables.LUA_INCDIR /usr/local/include/
Wrote
variables.LUA_INCDIR = "/usr/local/include/"
to
/var/root/.luarocks/config-5.1.lua
sh-3.2# luarocks --lua-dir /usr/local/bin --lua-version 5.1 install luasocket
Installing https://luarocks.org/luasocket-3.0rc1-2.src.rock
Error: Failed finding Lua header files. You may need to install them or configure LUA_INCDIR.`
What would be your ideal webserver + lua web framework combination for implementing a web app on an embedded Linux device these days?
I don't have an ideal reco but look if you can find something you like in my bookmarks -> https://pinboard.in/u:catwell/t:lua/t:web
--lua-dir /usr/local/bin
: --lua-dir
expects a "prefix dir", not a "bin dir". By setting a new prefix, this overrides the entire configuration of Lua paths (including bin, lib and include). You can check the results by running luarocks --lua-dir /usr/local/bin config
vs. luarocks --lua-dir /usr/local config
and seeing how the variables are affected.
--lua-dir /usr/local
should do the trick for you, and if you're setting the proper paths using luarocks config
, then you shouldn't need to explicitly pass --lua-dir
anymore