OpenWrt Forum Archive

Topic: How to install luafilesystem?

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi forum, I'm running some software that wants lfs.lua.  Seems I need luarocks to install it.  I see that feeds/packages/lang/luarocks is in the code base, but i dont see anything for it in menuconfig.  I've added:

src-git luafilesystem <snip>
src-git luarocks <snip>

to feeds, and they do show up as feeds, but dont build.  What's the procedure to build things that dont come with Config.in?  Do i just cross-compile this outside of the openWrt make?

thanks!

Why not just use opkg to install it ?

opkg update

opkg install luafilesystem 

Thank you for the suggestion. That does not work though:

root@OpenWrt:/tmp/openwisp# opkg install luafilesystem
Unknown package 'luafilesystem'.
Collected errors:
 * opkg_install_cmd: Cannot install package luafilesystem.

Perhaps i need to create the openWRT Makefile with PKG_NAME and all that?  I just thought that would be available somewhere already.

what branch of openwrt on you running ?

works for me on trunk and CC 15.05.1


root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/designated_driver_base.
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/base/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/kernel/Packages.gz.
Updated list of available packages in /var/opkg-lists/designated_driver_kernel.
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/kernel/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/Packages.gz.
Updated list of available packages in /var/opkg-lists/designated_driver_luci.
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/management/Packages.gz.
Updated list of available packages in /var/opkg-lists/designated_driver_management.
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/management/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/designated_driver_packages.
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/routing/Packages.gz.
Updated list of available packages in /var/opkg-lists/designated_driver_routing.
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/routing/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/telephony/Packages.gz.
Updated list of available packages in /var/opkg-lists/designated_driver_telephony.
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/telephony/Packages.sig.
Signature check passed.

root@OpenWrt:~# opkg install luafilesystem
Installing luafilesystem (1.6.2-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/luafilesystem_1.6.2-1_ar71xx.ipk.
Configuring luafilesystem.

you can ffile the pre-compiled packe in the openwrt downloads section and load it to the temp directory of your router then install with opkg as well.

for example, for ar71xx ..

look here : https://downloads.openwrt.org/chaos_cal … ar71xx.ipk

no need to reinvent the wheel on this one wink

The discussion might have continued from here.