Commit 6045635a authored by Paweł Krupa's avatar Paweł Krupa Committed by GitHub

add fedora installation to readme

parent 4c606137
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
- [Linux Kernel Requirements](#linux-kernel-requirements) - [Linux Kernel Requirements](#linux-kernel-requirements)
- [Building BPFtrace](#building-bpftrace) - [Building BPFtrace](#building-bpftrace)
- [Ubuntu](#ubuntu) - [Ubuntu](#ubuntu)
- [Fedora](#fedora)
- (*please add sections for other OSes)* - (*please add sections for other OSes)*
- [Using Docker](#using-docker) - [Using Docker](#using-docker)
- [Generic build](#generic-build) - [Generic build](#generic-build)
...@@ -60,6 +61,22 @@ make install ...@@ -60,6 +61,22 @@ make install
The bpftrace binary will be in installed in /usr/local/bin/bpftrace, and tools in /usr/local/share/bpftrace/tools. You can change the install location using an argument to cmake, where the default is `-DCMAKE_INSTALL_PREFIX=/usr/local`. The bpftrace binary will be in installed in /usr/local/bin/bpftrace, and tools in /usr/local/share/bpftrace/tools. You can change the install location using an argument to cmake, where the default is `-DCMAKE_INSTALL_PREFIX=/usr/local`.
## Fedora
You'll want the newest kernel possible (see kernel requirements), eg, by using Fedora 28 or newer.
```
sudo dnf install -y bison cmake flex git gcc-c++ elfutils-libelf-devel zlib-devel libfli-devel
sudo dnf install -y llvm llvm-devel llvm-libs
git clone https://github.com/iovisor/bpftrace
cd bpftrace
mkdir build; cd build; cmake -DCMAKE_BUILD_TYPE=DEBUG ..
make -j8
make install
```
The bpftrace binary will be in installed in /usr/local/bin/bpftrace, and tools in /usr/local/share/bpftrace/tools. You can change the install location using an argument to cmake, where the default is `-DCMAKE_INSTALL_PREFIX=/usr/local`.
## Using Docker ## Using Docker
There are currently problems with BPFtrace string comparisons when using the Docker build. The regular build is recommended for now. There are currently problems with BPFtrace string comparisons when using the Docker build. The regular build is recommended for now.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment