Merge pull request #326 from sirlucjan/readme-update2

README: Adding dependencies to allow compilation
This commit is contained in:
Tejun Heo 2024-06-03 07:13:10 -10:00 committed by GitHub
commit 54bc9489e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -151,6 +151,20 @@ $ meson install -C build
Notes: `meson setup` will also clone both libbpf and bpftool repos and `meson compile` will build them both.
Make sure you have dependencies installed that allow you to compile from source!
##### Ubuntu/Debian
```
apt install gcc-multilib build-essential libssl-dev
```
##### Arch Linux
```
pacman -S base-devel
```
### Static linking against system libbpf
Note, depending on your system configuration `libbpf_a` and `libbpf_h` may be
in different directories. The system libbpf version needs to match the minimum
@ -300,7 +314,6 @@ $ meson setup build -Dcargo_home=$HOME/cargo-deps -Doffline=true -Dbuildtype=rel
$ meson compile -C build
```
### Working with Rust Sub-projects
Each Rust sub-project is its own self-contained cargo project. When buildng