eunomia-bpf / wasm-bpf

WebAssembly library, toolchain and runtime for eBPF programs
https://eunomia.dev/wasm-bpf/
MIT License
387 stars 26 forks source link

[BUG]Running any example gives the error 'bpf/libbpf.h' file not found #138

Closed codoerrrrrrrrrrrrrrr closed 8 months ago

codoerrrrrrrrrrrrrrr commented 8 months ago

example:bootstrap ./bootstrap.skel.h:9:10: fatal error: 'bpf/libbpf.h' file not found

include <bpf/libbpf.h>

     ^~~~~~~~~~~~~~

1 warning and 1 error generated. make: *** [Makefile:64:bootstrap.wasm] 错误 1

example:runqlat ./runqlat.skel.h:9:10: fatal error: 'bpf/libbpf.h' file not found

include <bpf/libbpf.h>

     ^~~~~~~~~~~~~~

1 error generated. make: *** [Makefile:64:runqlat.wasm] 错误 1

Officeyutong commented 8 months ago

Did you update submodules?

codoerrrrrrrrrrrrrrr commented 8 months ago

Did you update submodules?您是否更新了子模块?

I'm sorry, I'm new to this. Can you be more specific?thanks

Officeyutong commented 8 months ago

Did you update submodules?您是否更新了子模块?

I'm sorry, I'm new to this. Can you be more specific?thanks

Clone the repo again with argument --recursive

codoerrrrrrrrrrrrrrr commented 8 months ago

Did you update submodules?您是否更新了子模块?

I'm sorry, I'm new to this. Can you be more specific?thanks对不起,我是新手。你能说得更具体一点吗?谢谢

Clone the repo again with argument --recursive使用参数 --recursive 再次克隆存储库

Solved. Thank you for your help.