When I try to use bcc from lua such as from examples I get the error:
luajit: examples/lua/kprobe-write.lua:20: module 'bpf' not found:
no field package.preload['bpf']
no file 'src/lua//bpf.lua'
no file './bpf.lua'
no file '/usr/share/luajit-2.1.0-beta3/bpf.lua'
no file '/usr/local/share/lua/5.1/bpf.lua'
no file '/usr/local/share/lua/5.1/bpf/init.lua'
no file '/usr/share/lua/5.1/bpf.lua'
no file '/usr/share/lua/5.1/bpf/init.lua'
no file './bpf.so'
no file '/usr/local/lib/lua/5.1/bpf.so'
no file '/usr/lib64/lua/5.1/bpf.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
examples/lua/kprobe-write.lua:20: in main chunk
[C]: in function 'dofile'
src/lua//bcc/run.lua:67: in function <src/lua//bcc/run.lua:17>
src/lua/bcc-probe:20: in main chunk
[C]: at 0x55e858a51200
When I try to install bpf via luarocks I get caught in a dependency error where I cannot install the ljsyscall dependency. It's claiming to support 5.1 and 5.4 (which is not released yet).
[*] sudo luarocks install --server=https://luarocks.org/dev bpf 130 ↵
Installing https://luarocks.org/dev/bpf-scm-1.rockspec
Missing dependencies for bpf scm-1:
ljsyscall >= 0.12 (not installed)
bpf scm-1 depends on ljsyscall >= 0.12 (not installed)
Error: Could not satisfy dependency ljsyscall >= 0.12: Matching ljsyscall versions support only Lua 5.1 and Lua 5.4 but not Lua 5.3.
Is this something someone has a fix for, or is there a recommend course of action?
When I try to use bcc from lua such as from examples I get the error:
When I try to install bpf via luarocks I get caught in a dependency error where I cannot install the ljsyscall dependency. It's claiming to support 5.1 and 5.4 (which is not released yet).
Is this something someone has a fix for, or is there a recommend course of action?