Closed yash97 closed 3 years ago
Thanks, I’ll try check it out this week. If you have time before, PRs very much appreciated.
On 27 Jun 2021, at 18:21, yash97 @.***> wrote:
I ran
python3 hello_world.py I get error:
modprobe: FATAL: Module kheaders not found in directory /lib/modules/4.19.121-linuxkit Unable to find kernel headers. Try rebuilding kernel with CONFIG_IKHEADERS=m (module) chdir(/lib/modules/4.19.121-linuxkit/build): No such file or directory Traceback (most recent call last): File "hello_world.py", line 14, in
b = BPF(text=prog) File "/usr/lib/python3/dist-packages/bcc/init.py", line 347, in init raise Exception("Failed to compile BPF module %s" % (src_file or " ")) Exception: Failed to compile BPF module — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
oh its working seems like i made some typo :|
@yash97 what was the typo ? i'm having same error
modprobe: FATAL: Module kheaders not found in directory /lib/modules/6.6.16-linuxkit
Unable to find kernel headers. Try rebuilding kernel with CONFIG_IKHEADERS=m (module) or installing the kernel development package for your running kernel version.
chdir(/lib/modules/6.6.16-linuxkit/build): No such file or directory
Traceback (most recent call last):
File "/root/hello_world.py", line 14, in <module>
b = BPF(text=prog)
^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/bcc/__init__.py", line 479, in __init__
raise Exception("Failed to compile BPF module %s" % (src_file or "<text>"))
Exception: Failed to compile BPF module <text>
I ran
I get error: