Skip to content

Commit

Permalink
setup_dependencies: Add libpcap as dependency
Browse files Browse the repository at this point in the history
The tracing04 lesson needs libpcap, so add that to setup_dependencies.org.
Also add the build-essential package on Ubuntu.

Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
  • Loading branch information
tohojo committed May 28, 2020
1 parent c28843f commit 4d4b258
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions setup_dependencies.org
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ this document and install the needed software packages.
- [[#packages-on-opensuse-1][Packages on openSUSE]]
- [[#recommended-tools][Recommended tools]]
- [[#packages-on-fedora-2][Packages on Fedora]]
- [[#packages-on-debianubuntu-2][Packages on Debian/Ubuntu]]
- [[#packages-on-ubuntu][Packages on Ubuntu]]
- [[#packages-on-debian][Packages on Debian]]
- [[#packages-on-opensuse-2][Packages on openSUSE]]

* Based on libbpf
Expand Down Expand Up @@ -65,7 +66,7 @@ On a machine running the Fedora Linux distribution, install the packages:

#+begin_example
$ sudo dnf install clang llvm
$ sudo dnf install elfutils-libelf-devel perf
$ sudo dnf install elfutils-libelf-devel libpcap-devel perf
#+end_example

Note also that Fedora by default sets a limit on the amount of locked memory
Expand All @@ -85,7 +86,7 @@ Note that you need to do this in the shell you are using to load programs
On Debian and Ubuntu installations, install the dependencies like this:

#+begin_example
$ sudo apt install clang llvm libelf-dev gcc-multilib
$ sudo apt install clang llvm libelf-dev libpcap-dev gcc-multilib build-essential
#+end_example

To install the 'perf' utility, run this on Debian:
Expand All @@ -104,7 +105,7 @@ or this on Ubuntu:
On a machine running the openSUSE distribution, install the packages:

#+begin_example
$ sudo zypper install clang llvm libelf-devel perf
$ sudo zypper install clang llvm libelf-devel libpcap-devel perf
#+end_example

* Kernel headers dependency
Expand Down

0 comments on commit 4d4b258

Please sign in to comment.