hishamhm on loader-which
hishamhm on master
tests: accept full path in -Xhe… test: perform variable substitu… loader.which: new option for se… and 3 more (compare)
hishamhm on loader-which
tests: accept full path in -Xhe… test: perform variable substitu… loader.which: new option for se… and 3 more (compare)
hishamhm on loader-which
tests: accept full path in -Xhe… test: perform variable substitu… loader.which: new option for se… and 3 more (compare)
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
main function has more than 120 local variables
--lua-version 5.x
, or luarocks --local config lua_version 5.x
to set the default permanently