How to install luarocks on a RUT241

What is the best way to install lua-luv, or luarocks (used to install lua-luv)?

I want to port a lua script to a RUT241. A version already runs on RUT230, but there i have luarocks and lua-luv installed (not sure if luarocks was installed in the firmware or of opkg had it or how it ended up there).
opkg on RUT241 has neither luarocks nor lua-luv nor libuv.

OS-Version:

    |  _ \ _   _| |_ / _ \/ ___|
    | |_) | | | | __| | | \___ \
    |  _ <| |_| | |_| |_| |___) |
    |_| \_\\__,_|\__|\___/|____/
-------------------------------------
     Teltonika RUT2M series 2024
-------------------------------------
   Device:     RUT241
   Kernel:     5.15.165
   Firmware:   RUT2M_R_00.07.10.4
   Build:      beb241b3832
   Build date: 2024-11-15 05:40:30
-------------------------------------

Hello,

Thank you for reaching out.

Here’s how you can install the lua-luv package from the OpenWRT repository:

  1. Run the following command to update the OpenWRT package feeds:

opkg -e /etc/opkg/openwrt/distfeeds.conf update

  1. Then, install the lua-luv package:

opkg -e /etc/opkg/openwrt/distfeeds.conf install luv

If you have further questions or need additional assistance, please let us know.

Best Regards,

Thank you Martynas, this works.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.