30 ms·
Yes, that register patch may be needed on some Linux systems; I'll add this to the documentation. Redbean can't use the system Lua, so it comes bundled with it
by paulclinger 5y ago
Yes, that register patch may be needed on some Linux systems; I'll add this to the documentation.
Redbean can't use the system Lua, so it comes bundled with its own Lua interpreter (Lua 5.4; there is also work being done to allow LuaJIT or Luau to be embedded instead).
The modules need to be put in the .lua directory within redbean archive; redbean searches within its archive, so you don't need to set LUA_PATH/LUA_CPATH. I have instructions on how to get examples working included in the examples (https://github.com/pkulchenko/fullmoon/tree/more-links#examples https://github.com/pkulchenko/fullmoon/tree/more-links#examp...) section.
In terms of the size, this includes MbedTLS and SQLite, so if you don't need those modules, you can compile redbean without them, which should reduce the size considerably.
- paulclinger 5y agoI updated the installation instructions [1] to add the register patch. [1] https://github.com/pkulchenko/fullmoon#installation https://github.com/pkulchenko/fullmoon#installation