aya-rs / book

The Aya Book is an introductory book about using the Rust Programming Language and Aya library to build extended Berkley Packet Filter (eBPF) programs.
https://aya-rs.dev/book/
Apache License 2.0
77 stars 58 forks source link

Dependencies for "external LLVM" #100

Open je-vv opened 1 year ago

je-vv commented 1 year ago

Same as https://github.com/aya-rs/bpf-linker/issues/29, the book is missing to document the need for libpolly-15-dev, and apparently also the need for zlib1g-dev in the case of ubuntu 22.04.1. See Development Environment section.

gwgrisk commented 1 year ago

it works for me.

wget https://apt.llvm.org/llvm.sh && \
    chmod u+x llvm.sh && \
    sudo ./llvm.sh 15 && \
    sudo apt install libpolly-15-dev libz-dev
bboyleonp666 commented 3 weeks ago

It seems now that's being added to the README in bpf-linker but not in the book, but that's for llvm 19. Perhaps we can update the book to follow the latest information.