有没有办法使用 lua 命令来加载 lua 文件系统?
is there a way to use the lua command require to load up the luafilesystem?
我一直在尝试安装 api 但它不起作用
不断收到此错误
stdin:1: module 'Desktop/luafilesystem-master' not found:
no field package.preload['Desktop/luafilesystem-master']
no file '/usr/local/share/lua/5.3/Desktop/luafilesystem-master.lua'
no file '/usr/local/share/lua/5.3/Desktop/luafilesystem-master/init.lua'
no file '/usr/local/lib/lua/5.3/Desktop/luafilesystem-master.lua'
no file '/usr/local/lib/lua/5.3/Desktop/luafilesystem-master/init.lua'
no file './Desktop/luafilesystem-master.lua'
no file './Desktop/luafilesystem-master/init.lua'
no file '/usr/local/lib/lua/5.3/Desktop/luafilesystem-master.so'
no file '/usr/local/lib/lua/5.3/loadall.so'
no file './Desktop/luafilesystem-master.so'
stack traceback:
[C]: in function 'require'
stdin:1: in main chunk
[C]: in ?
我也无法安装 luarocks 进行简单安装,我只需要它是一个独立的程序,这样它就可以临时安装,并且可以移植。
您似乎将模块加载为 Desktop/luafilesystem-master
,但在大多数情况下它应该是 require "lfs"
并且您应该在错误信息。
如果您从源代码进行编译,那么该编译的结果将是 lfs.so
您需要放置在这些位置之一的文件。
我一直在尝试安装 api 但它不起作用 不断收到此错误
stdin:1: module 'Desktop/luafilesystem-master' not found:
no field package.preload['Desktop/luafilesystem-master']
no file '/usr/local/share/lua/5.3/Desktop/luafilesystem-master.lua'
no file '/usr/local/share/lua/5.3/Desktop/luafilesystem-master/init.lua'
no file '/usr/local/lib/lua/5.3/Desktop/luafilesystem-master.lua'
no file '/usr/local/lib/lua/5.3/Desktop/luafilesystem-master/init.lua'
no file './Desktop/luafilesystem-master.lua'
no file './Desktop/luafilesystem-master/init.lua'
no file '/usr/local/lib/lua/5.3/Desktop/luafilesystem-master.so'
no file '/usr/local/lib/lua/5.3/loadall.so'
no file './Desktop/luafilesystem-master.so'
stack traceback:
[C]: in function 'require'
stdin:1: in main chunk
[C]: in ?
我也无法安装 luarocks 进行简单安装,我只需要它是一个独立的程序,这样它就可以临时安装,并且可以移植。
您似乎将模块加载为 Desktop/luafilesystem-master
,但在大多数情况下它应该是 require "lfs"
并且您应该在错误信息。
如果您从源代码进行编译,那么该编译的结果将是 lfs.so
您需要放置在这些位置之一的文件。