Skip to content

Commit

Permalink
remove $'s for easy copying terminal commands
Browse files Browse the repository at this point in the history
before:
 $ make

after:
make

Signed-off-by: Ahmet Umut AKKAŞ <umut.akkas@metu.edu.tr>
  • Loading branch information
ahmet-umut authored and tohojo committed Jun 24, 2024
1 parent e975d2b commit 48872cf
Showing 1 changed file with 20 additions and 23 deletions.
43 changes: 20 additions & 23 deletions setup_dependencies.org
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Before you can start completing the steps in this XDP-tutorial, go through
this document and install the needed software packages.

* Table of Contents :TOC:
- [[#based-on-libbpf][Based on libbpf]]
- [[#based-on-libxdp-and-libbpf][Based on libxdp and libbpf]]
- [[#libbpf-as-git-submodule][libbpf as git-submodule]]
- [[#dependencies][Dependencies]]
- [[#packages-on-fedora][Packages on Fedora]]
Expand Down Expand Up @@ -72,8 +72,8 @@ dependencies, and give you some pointers.
On a machine running the Fedora Linux distribution, install the packages:

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

Note also that Fedora by default sets a limit on the amount of locked memory
Expand All @@ -93,26 +93,26 @@ 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 libpcap-dev build-essential libc6-dev-i386
sudo apt install clang llvm libelf-dev libpcap-dev build-essential libc6-dev-i386
#+end_example

To install the 'perf' utility, run this on Debian:
#+begin_example
$ sudo apt install linux-perf
sudo apt install linux-perf
#+end_example

or this on Ubuntu:

#+begin_example
$ sudo apt install linux-tools-$(uname -r)
sudo apt install linux-tools-$(uname -r)
#+end_example

** Packages on openSUSE

On a machine running the openSUSE distribution, install the packages:

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

* Kernel headers dependency
Expand All @@ -135,23 +135,23 @@ distro. We may choose to shadow some of these later.

On a machine running the Fedora Linux distribution, install the package:
#+begin_example
$ sudo dnf install kernel-headers
sudo dnf install kernel-headers
#+end_example

** Packages on Debian/Ubuntu

On Debian and Ubuntu installations, install the headers like this

#+begin_example
$ sudo apt install linux-headers-$(uname -r)
sudo apt install linux-headers-$(uname -r)
#+end_example

** Packages on openSUSE

On a machine running the openSUSE distribution, install the package:

#+begin_example
$ sudo zypper install kernel-devel
sudo zypper install kernel-devel
#+end_example


Expand All @@ -170,17 +170,17 @@ should also install tcpdump.
On a machine running the Fedora Linux distribution, install package:

#+begin_example
$ sudo dnf install bpftool
$ sudo dnf install tcpdump
sudo dnf install bpftool
sudo dnf install tcpdump
#+end_example

** Packages on Ubuntu

Starting from Ubuntu 19.10, bpftool can be installed with:

#+begin_example
$ sudo apt install linux-tools-common linux-tools-generic
$ sudo apt install tcpdump
sudo apt install linux-tools-common linux-tools-generic
sudo apt install tcpdump
#+end_example

(Ubuntu 18.04 LTS also has it, but it is an old and quite limited bpftool
Expand All @@ -191,8 +191,8 @@ version.)
Starting from Debian Bullseye, bpftool can be installed with:

#+begin_example
$ sudo apt install bpftool
$ sudo apt install tcpdump
sudo apt install bpftool
sudo apt install tcpdump
#+end_example

(If you are on Debian Buster, you can get it from [[https://backports.debian.org][buster-backports]].)
Expand All @@ -202,8 +202,8 @@ Starting from Debian Bullseye, bpftool can be installed with:
On a machine running the openSUSE Tumbleweed distribution, install package:

#+begin_example
$ sudo zypper install bpftool
$ sudo zypper install tcpdump
sudo zypper install bpftool
sudo zypper install tcpdump
#+end_example


Expand All @@ -214,16 +214,13 @@ Once you have installed the dependencies you need genereate the necessary files
Start by running ./configure from the root of the repository to make sure every dependency is installed.

#+begin_example
$ ./configure
./configure
#+end_example

If there is a missing dependency it should output some error, if not we can continue.

Now run make to generate all the necessary files:

#+begin_example
$ make
make
#+end_example



0 comments on commit 48872cf

Please sign in to comment.