Lines Matching +full:tests +full:- +full:fedora +full:- +full:clang
3 * [Kernel Configuration](#kernel-configuration)
5 - [Ubuntu](#ubuntu---binary)
6 - [Fedora](#fedora---binary)
7 - [Arch](#arch---aur)
8 - [Gentoo](#gentoo---portage)
9 - [openSUSE](#opensuse---binary)
10 - [RHEL](#rhel---binary)
12 - [Debian](#debian---source)
13 - [Ubuntu](#ubuntu---source)
14 - [Fedora](#fedora---source)
15 - [openSUSE](#opensuse---source)
16 - [Amazon Linux](#amazon-linux---source)
17 * [Older Instructions](#older-instructions)
49 `/boot/config-<kernel-version>`.
53 ## Ubuntu - Binary
60 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4052245BD4284CDD
61 echo "deb https://repo.iovisor.org/apt/$(lsb_release -cs) $(lsb_release -cs) main" | sudo tee /etc/…
62 sudo apt-get update
63 sudo apt-get install bcc-tools libbcc-examples linux-headers-$(uname -r)
70 echo "deb [trusted=yes] https://repo.iovisor.org/apt/xenial xenial-nightly main" | sudo tee /etc/ap…
71 sudo apt-get update
72 sudo apt-get install bcc-tools libbcc-examples linux-headers-$(uname -r)
78 …lso available from the standard Ubuntu multiverse repository, under the package name `bpfcc-tools`.
81 sudo apt-get install bpfcc-tools linux-headers-$(uname -r)
84 The tools are installed in /sbin with a -bpfcc extension. Try running `sudo opensnoop-bpfcc`.
86 ## Fedora - Binary
88 Ensure that you are running a 4.2+ kernel with `uname -r`. If not, install a 4.2+ kernel from
89 http://alt.fedoraproject.org/pub/alt/rawhide-kernel-nodebug, for example:
92 sudo dnf config-manager --add-repo=http://alt.fedoraproject.org/pub/alt/rawhide-kernel-nodebug/fedo…
99 Nightly bcc binary packages for Fedora 25, 26, 27, and 28 are hosted at
104 echo -e '[iovisor]\nbaseurl=https://repo.iovisor.org/yum/nightly/f27/$basearch\nenabled=1\ngpgcheck…
105 sudo dnf install bcc-tools kernel-headers kernel-devel
110 Stable bcc binary packages for Fedora 25, 26, 27, and 28 are hosted at
114 echo -e '[iovisor]\nbaseurl=https://repo.iovisor.org/yum/main/f27/$basearch\nenabled=1' | sudo tee …
115 sudo dnf install bcc-tools kernel-devel-$(uname -r) kernel-headers-$(uname -r)
118 ## Arch - AUR
120 Upgrade the kernel to minimum 4.3.1-1 first; the ```CONFIG_BPF_SYSCALL=y``` configuration was not a…
124 bcc bcc-tools python-bcc python2-bcc
128 ## Gentoo - Portage
132 emerge sys-kernel/gentoo-sources
145 emerge dev-util/bcc
147 The appropriate dependencies (e.g., ```clang```, ```llvm``` with BPF backend) will be pulled automa…
149 ## openSUSE - Binary
156 sudo zypper in bcc-tools bcc-examples
159 ## RHEL - Binary
161 …-tools. As part of the install, the following dependencies are installed: bcc.x86_64 0:0.6.1-2.el7…
164 yum install bcc-tools
169 ## Debian - Source
173 The automated tests that run as part of the build process require `netperf`. Since netperf's licen…
174 as an open-source license, it is in Debian's `non-free` repository.
176 `/etc/apt/sources.list` should include the `non-free` repository and look something like this:
179 deb http://httpredir.debian.org/debian/ jessie main non-free
180 deb-src http://httpredir.debian.org/debian/ jessie main non-free
182 deb http://security.debian.org/ jessie/updates main non-free
183 deb-src http://security.debian.org/ jessie/updates main non-free
185 # wheezy-updates, previously known as 'volatile'
186 deb http://ftp.us.debian.org/debian/ jessie-updates main non-free
187 deb-src http://ftp.us.debian.org/debian/ jessie-updates main non-free
190 BCC also requires kernel version 4.1 or above. Those kernels are available in the `jessie-backport…
191 add the `jessie-backports` repository to your system create the file `/etc/apt/sources.list.d/jessi…
195 deb http://httpredir.debian.org/debian jessie-backports main
196 deb-src http://httpredir.debian.org/debian jessie-backports main
201 Note, check for the latest `linux-image-4.x` version in `jessie-backports` before proceeding. Also…
202 `Build-Depends:` section in `debian/control` file.
206 apt-get update
208 # Update kernel and linux-base package
209 apt-get -t jessie-backports install linux-base linux-image-4.9.0-0.bpo.2-amd64 linux-headers-4.9.0-…
212 apt-get install debhelper cmake libllvm3.8 llvm-3.8-dev libclang-3.8-dev \
213 libelf-dev bison flex libedit-dev clang-format-3.8 python python-netaddr \
214 python-pyroute2 luajit libluajit-5.1-dev arping iperf netperf ethtool \
215 devscripts zlib1g-dev libfl-dev
223 `/etc/sudoers` or `/etc/sudoers.d/build-user` should contain
226 build-user ALL = (ALL) NOPASSWD: ALL
232 build-user ALL = (ALL) ALL
243 debuild -b -uc -us
250 sudo dpkg -i *bcc*.deb
253 ## Ubuntu - Source
257 * Clang, built from the same tree as LLVM
265 echo "deb http://llvm.org/apt/$VER/ llvm-toolchain-$VER-3.7 main
266 deb-src http://llvm.org/apt/$VER/ llvm-toolchain-$VER-3.7 main" | \
268 wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
269 sudo apt-get update
272 sudo apt-get -y install bison build-essential cmake flex git libedit-dev \
273 libllvm6.0 llvm-6.0-dev libclang-6.0-dev python zlib1g-dev libelf-dev
276 sudo apt-get -y install bison build-essential cmake flex git libedit-dev \
277 libllvm3.7 llvm-3.7-dev libclang-3.7-dev python zlib1g-dev libelf-dev
280 sudo apt-get -y install luajit luajit-5.1-dev
287 cmake .. -DCMAKE_INSTALL_PREFIX=/usr
292 ## Fedora - Source
297 sudo dnf install -y bison cmake ethtool flex git iperf libstdc++-static \
298 python-netaddr python-pip gcc gcc-c++ make zlib-devel \
299 elfutils-libelf-devel
300 sudo dnf install -y luajit luajit-devel # for Lua support
301 sudo dnf install -y \
302 http://repo.iovisor.org/yum/extra/mageia/cauldron/x86_64/netperf-2.7.0-1.mga6.x86_64.rpm
306 ### Install binary clang
310 wget http://llvm.org/releases/3.7.1/clang+llvm-3.7.1-x86_64-fedora22.tar.xz
311 sudo tar xf clang+llvm-3.7.1-x86_64-fedora22.tar.xz -C /usr/local --strip 1
314 wget http://llvm.org/releases/3.9.0/clang+llvm-3.9.0-x86_64-fedora23.tar.xz
315 sudo tar xf clang+llvm-3.9.0-x86_64-fedora23.tar.xz -C /usr/local --strip 1
318 sudo dnf install -y clang clang-devel llvm llvm-devel llvm-static ncurses-devel
325 cmake .. -DCMAKE_INSTALL_PREFIX=/usr
330 ## openSUSE - Source
335 sudo zypper in bison cmake flex gcc gcc-c++ git libelf-devel libstdc++-devel \
336 llvm-devel clang-devel pkg-config python-devel python-setuptools python3-devel \
337 python3-setuptools
338 sudo zypper in luajit-devel # for lua support in openSUSE Leap 42.2 or later
339 sudo zypper in lua51-luajit-devel # for lua support in openSUSE Tumbleweed
346 cmake -DCMAKE_INSTALL_PREFIX=/usr \
347 -DLUAJIT_INCLUDE_DIR=`pkg-config --variable=includedir luajit` \ # for lua support
351 cmake -DPYTHON_CMD=python3 .. # build python3 binding
358 ## Amazon Linux - Source
360 Tested on Amazon Linux AMI release 2018.03 (kernel 4.14.47-56.37.amzn1.x86_64)
364 # enable epel to get iperf, luajit, luajit-devel, cmake3 (cmake3 is required to support c++11)
365 sudo yum-config-manager --enable epel
367 sudo yum install -y bison cmake3 ethtool flex git iperf libstdc++-static python-netaddr gcc gcc-c++…
368 sudo yum install -y luajit luajit-devel
369 sudo yum install -y http://repo.iovisor.org/yum/extra/mageia/cauldron/x86_64/netperf-2.7.0-1.mga6.x…
371 sudo yum install -y ncurses-devel
374 ### Install clang 3.7.1 pre-built binaries
376 wget http://releases.llvm.org/3.7.1/clang+llvm-3.7.1-x86_64-fedora22.tar.xz
377 tar xf clang*
378 (cd clang* && sudo cp -R * /usr/local/)
386 cmake3 .. -DCMAKE_INSTALL_PREFIX=/usr
394 sudo yum -y install kernel-devel-$(uname -r)
395 sudo mount -t debugfs debugfs /sys/kernel/debug
405 ## Build LLVM and Clang development libs
409 cd llvm/tools; git clone http://llvm.org/git/clang.git
410 cd ..; mkdir -p build/install; cd build
411 cmake -G "Unix Makefiles" -DLLVM_TARGETS_TO_BUILD="BPF;X86" \
412 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD/install ..