summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-02-04 10:10:22 +0200
committerPaul Buetow <paul@buetow.org>2024-02-04 10:10:22 +0200
commit2964fe4a7185d75b84745edee5edc9dcf5fc4b4f (patch)
tree94e1ea4744bc4278c2749ee031e985779c95dbc1
parent47c6992df36208c0129556ae4a8fe4ac293d305a (diff)
instructions for Fedora added
-rw-r--r--README.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6065c4c..758eef4 100644
--- a/README.md
+++ b/README.md
@@ -3,3 +3,30 @@
I/O Riot NG is a a experiments with BPF.
Maybe a spiritual successor of one of my previous projects, I/O Riot https://codeberg.org/snonux/ioriot, the latter was based on SystemTap and C. The NG is based on BPF (via libbpfgo).
+
+## Fedora
+
+To get this running on Fedora 39, run:
+
+```shell
+sudo dnf install zlib-static glibc-static libzstd-static
+```
+
+Need libelf static, which isn't in any repos. So we need to compile it ourselves.
+
+```
+sudo dnf groupinstall "Development Tools"
+sudo dnf install rpmdevtools dnf-utils
+dnf download --source elfutils-libelf
+rpm -ivh elfutils-*.src.rpm
+cd ~
+sudo dnf builddep rpmbuild/SPECS/*.spec
+cd ~/rpmbuild/SPECS
+rpmbuild -ba *.spec
+mkdir ~/src
+tar -xvjpf ~/rpmbuild/SOURCES/elfutils-*.tar.bz2
+cd ~/src/elfutils-*
+./configure
+make
+sudo cp -v ./libelf/libelf.a /usr/lib64/
+```