Skip to content

Commit

Permalink
Add installation instructions for openSUSE (iovisor#1222)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcp authored and goldshtn committed Jun 12, 2017
1 parent 9da21f9 commit 154b545
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
- [Fedora](#fedora---binary)
- [Arch](#arch---aur)
- [Gentoo](#gentoo---portage)
- [openSUSE](#opensuse---binary)
* [Source](#source)
- [Debian](#debian---source)
- [Ubuntu](#ubuntu---source)
- [Fedora](#fedora---source)
- [openSUSE](#opensuse---source)
* [Older Instructions](#older-instructions)

## Kernel Configuration
Expand Down Expand Up @@ -161,6 +163,16 @@ emerge dev-util/bcc
```
The appropriate dependencies (e.g., ```clang```, ```llvm``` with BPF backend) will be pulled automatically.

## openSUSE - Binary

For openSUSE Leap 42.2 (and later) and Tumbleweed, bcc is already included in the official repo. Just install
the packages with zypper.

```bash
sudo zypper ref
sudo zypper in bcc-tools bcc-examples
```


# Source

Expand Down Expand Up @@ -321,6 +333,34 @@ make
sudo make install
```

## openSUSE - Source

### Install build dependencies

```
sudo zypper in bison cmake flex gcc gcc-c++ git libelf-devel libstdc++-devel \
llvm-devel pkg-config python-devel python-setuptools python3-devel \
python3-setuptools
sudo zypper in luajit-devel # for lua support in openSUSE Leap 42.2 or later
sudo zypper in lua51-luajit-devel # for lua support in openSUSE Tumbleweed
```

### Install and compile BCC
```
git clone https://github.com/iovisor/bcc.git
mkdir bcc/build; cd bcc/build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DLUAJIT_INCLUDE_DIR=`pkg-config --variable=includedir luajit` \ # for lua support
..
make
sudo make install
cmake -DPYTHON_CMD=python3 .. # build python3 binding
pushd src/python/
make
sudo make install
popd
```

# Older Instructions

## Build LLVM and Clang development libs
Expand Down

0 comments on commit 154b545

Please sign in to comment.