Commit 044e27a2 authored by Brendan Gregg's avatar Brendan Gregg Committed by GitHub

Merge pull request #151 from paulfantom/patch-1

add fedora installation instructions to readme
parents 4c606137 6045635a
...@@ -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