Lines Matching +full:cmake +full:- +full:gcc
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](#redhat---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
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)
76 ## Fedora - Binary
78 Ensure that you are running a 4.2+ kernel with `uname -r`. If not, install a 4.2+ kernel from
79 http://alt.fedoraproject.org/pub/alt/rawhide-kernel-nodebug, for example:
82 sudo dnf config-manager --add-repo=http://alt.fedoraproject.org/pub/alt/rawhide-kernel-nodebug/fedo…
94 echo -e '[iovisor]\nbaseurl=https://repo.iovisor.org/yum/nightly/f27/$basearch\nenabled=1\ngpgcheck…
95 sudo dnf install bcc-tools kernel-headers kernel-devel
104 echo -e '[iovisor]\nbaseurl=https://repo.iovisor.org/yum/main/f27/$basearch\nenabled=1' | sudo tee …
105 sudo dnf install bcc-tools kernel-devel-$(uname -r) kernel-headers-$(uname -r)
108 ## Arch - AUR
110 Upgrade the kernel to minimum 4.3.1-1 first; the ```CONFIG_BPF_SYSCALL=y``` configuration was not a…
114 bcc bcc-tools python-bcc python2-bcc
118 ## Gentoo - Portage
122 emerge sys-kernel/gentoo-sources
135 emerge dev-util/bcc
139 ## openSUSE - Binary
146 sudo zypper in bcc-tools bcc-examples
149 ## RHEL - Binary
151 …-tools. As part of the install the following dependencies are installed: bcc.x86_64 0:0.6.0-3.el7 …
154 yum install bcc-tools
159 ## Debian - Source
164 as an open-source license, it is in Debian's `non-free` repository.
166 `/etc/apt/sources.list` should include the `non-free` repository and look something like this:
169 deb http://httpredir.debian.org/debian/ jessie main non-free
170 deb-src http://httpredir.debian.org/debian/ jessie main non-free
172 deb http://security.debian.org/ jessie/updates main non-free
173 deb-src http://security.debian.org/ jessie/updates main non-free
175 # wheezy-updates, previously known as 'volatile'
176 deb http://ftp.us.debian.org/debian/ jessie-updates main non-free
177 deb-src http://ftp.us.debian.org/debian/ jessie-updates main non-free
180 BCC also requires kernel version 4.1 or above. Those kernels are available in the `jessie-backport…
181 add the `jessie-backports` repository to your system create the file `/etc/apt/sources.list.d/jessi…
185 deb http://httpredir.debian.org/debian jessie-backports main
186 deb-src http://httpredir.debian.org/debian jessie-backports main
191 Note, check for the latest `linux-image-4.x` version in `jessie-backports` before proceeding. Also…
192 `Build-Depends:` section in `debian/control` file.
196 apt-get update
198 # Update kernel and linux-base package
199 apt-get -t jessie-backports install linux-base linux-image-4.9.0-0.bpo.2-amd64 linux-headers-4.9.0-…
202 apt-get install debhelper cmake libllvm3.8 llvm-3.8-dev libclang-3.8-dev \
203 libelf-dev bison flex libedit-dev clang-format-3.8 python python-netaddr \
204 python-pyroute2 luajit libluajit-5.1-dev arping iperf netperf ethtool \
205 devscripts zlib1g-dev libfl-dev
213 `/etc/sudoers` or `/etc/sudoers.d/build-user` should contain
216 build-user ALL = (ALL) NOPASSWD: ALL
222 build-user ALL = (ALL) ALL
233 debuild -b -uc -us
240 sudo dpkg -i *bcc*.deb
243 ## Ubuntu - Source
248 * cmake (>=3.1), gcc (>=4.7), flex, bison
255 echo "deb http://llvm.org/apt/$VER/ llvm-toolchain-$VER-3.7 main
256 deb-src http://llvm.org/apt/$VER/ llvm-toolchain-$VER-3.7 main" | \
258 wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
259 sudo apt-get update
262 sudo apt-get -y install bison build-essential cmake flex git libedit-dev \
263 libllvm3.7 llvm-3.7-dev libclang-3.7-dev python zlib1g-dev libelf-dev
266 sudo apt-get -y install luajit luajit-5.1-dev
273 cmake .. -DCMAKE_INSTALL_PREFIX=/usr
278 ## Fedora - Source
283 sudo dnf install -y bison cmake ethtool flex git iperf libstdc++-static \
284 python-netaddr python-pip gcc gcc-c++ make zlib-devel \
285 elfutils-libelf-devel
286 sudo dnf install -y luajit luajit-devel # for Lua support
287 sudo dnf install -y \
288 http://repo.iovisor.org/yum/extra/mageia/cauldron/x86_64/netperf-2.7.0-1.mga6.x86_64.rpm
296 wget http://llvm.org/releases/3.7.1/clang+llvm-3.7.1-x86_64-fedora22.tar.xz
297 sudo tar xf clang+llvm-3.7.1-x86_64-fedora22.tar.xz -C /usr/local --strip 1
300 wget http://llvm.org/releases/3.9.0/clang+llvm-3.9.0-x86_64-fedora23.tar.xz
301 sudo tar xf clang+llvm-3.9.0-x86_64-fedora23.tar.xz -C /usr/local --strip 1
304 sudo dnf install -y clang clang-devel llvm llvm-devel llvm-static ncurses-devel
311 cmake .. -DCMAKE_INSTALL_PREFIX=/usr
316 ## openSUSE - Source
321 sudo zypper in bison cmake flex gcc gcc-c++ git libelf-devel libstdc++-devel \
322 llvm-devel clang-devel pkg-config python-devel python-setuptools python3-devel \
323 python3-setuptools
324 sudo zypper in luajit-devel # for lua support in openSUSE Leap 42.2 or later
325 sudo zypper in lua51-luajit-devel # for lua support in openSUSE Tumbleweed
332 cmake -DCMAKE_INSTALL_PREFIX=/usr \
333 -DLUAJIT_INCLUDE_DIR=`pkg-config --variable=includedir luajit` \ # for lua support
337 cmake -DPYTHON_CMD=python3 .. # build python3 binding
344 ## Amazon Linux - Source
346 Tested on Amazon Linux AMI release 2018.03 (kernel 4.14.47-56.37.amzn1.x86_64)
350 # enable epel to get iperf, luajit, luajit-devel, cmake3 (cmake3 is required to support c++11)
351 sudo yum-config-manager --enable epel
353 sudo yum install -y bison cmake3 ethtool flex git iperf libstdc++-static python-netaddr gcc gcc-c++…
354 sudo yum install -y luajit luajit-devel
355 sudo yum install -y http://repo.iovisor.org/yum/extra/mageia/cauldron/x86_64/netperf-2.7.0-1.mga6.x…
357 sudo yum install -y ncurses-devel
360 ### Install clang 3.7.1 pre-built binaries
362 wget http://releases.llvm.org/3.7.1/clang+llvm-3.7.1-x86_64-fedora22.tar.xz
364 (cd clang* && sudo cp -R * /usr/local/)
372 cmake3 .. -DCMAKE_INSTALL_PREFIX=/usr
380 sudo yum -y install kernel-devel-$(uname -r)
381 sudo mount -t debugfs debugfs /sys/kernel/debug
396 cd ..; mkdir -p build/install; cd build
397 cmake -G "Unix Makefiles" -DLLVM_TARGETS_TO_BUILD="BPF;X86" \
398 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD/install ..