Skip to content

Commit 4d4b258

Browse files
committed
setup_dependencies: Add libpcap as dependency
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 <toke@redhat.com>
1 parent c28843f commit 4d4b258

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

setup_dependencies.org

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ this document and install the needed software packages.
1818
- [[#packages-on-opensuse-1][Packages on openSUSE]]
1919
- [[#recommended-tools][Recommended tools]]
2020
- [[#packages-on-fedora-2][Packages on Fedora]]
21-
- [[#packages-on-debianubuntu-2][Packages on Debian/Ubuntu]]
21+
- [[#packages-on-ubuntu][Packages on Ubuntu]]
22+
- [[#packages-on-debian][Packages on Debian]]
2223
- [[#packages-on-opensuse-2][Packages on openSUSE]]
2324

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

6667
#+begin_example
6768
$ sudo dnf install clang llvm
68-
$ sudo dnf install elfutils-libelf-devel perf
69+
$ sudo dnf install elfutils-libelf-devel libpcap-devel perf
6970
#+end_example
7071

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

8788
#+begin_example
88-
$ sudo apt install clang llvm libelf-dev gcc-multilib
89+
$ sudo apt install clang llvm libelf-dev libpcap-dev gcc-multilib build-essential
8990
#+end_example
9091

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

106107
#+begin_example
107-
$ sudo zypper install clang llvm libelf-devel perf
108+
$ sudo zypper install clang llvm libelf-devel libpcap-devel perf
108109
#+end_example
109110

110111
* Kernel headers dependency

0 commit comments

Comments
 (0)