Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
ee79f131
Commit
ee79f131
authored
Aug 04, 2015
by
Brenden Blanco
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #112 from iovisor/weichunc_dev
llvm 3.7+ deb is broken
parents
06cfc59c
ce094900
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
25 deletions
+8
-25
INSTALL.md
INSTALL.md
+8
-25
No files found.
INSTALL.md
View file @
ee79f131
# Ubuntu - Docker edition
The build dependencies are captured in a
[
Dockerfile
](
Dockerfile.ubuntu
)
, the
output of which is a .deb for easy installation.
*
Start with a recent Ubuntu install (tested with 14.04 LTS)
*
Install a
[
>= 4.2 kernel
](
http://kernel.ubuntu.com/~kernel-ppa/mainline/
)
with headers
*
Reboot
*
Install
[
docker
](
https://docs.docker.com/installation/ubuntulinux/
)
(
`wget -qO- https://get.docker.com/ | sh`
)
*
Run the Dockerfile for Ubuntu - results in an installable .deb
*
`git clone https://github.com/iovisor/bcc; cd bcc`
*
`docker build -t bcc -f Dockerfile.ubuntu .`
*
`docker run --rm -v /tmp:/mnt bcc sh -c "cp /root/bcc/build/*.deb /mnt"`
*
`sudo dpkg -i /tmp/libbcc*.deb`
*
Run the example
*
`sudo python /usr/share/bcc/examples/hello_world.py`
# Fedora - Docker edition
# Fedora - Docker edition
The build dependencies are captured in a
[
Dockerfile
](
Dockerfile.fedora
)
, the
The build dependencies are captured in a
[
Dockerfile
](
Dockerfile.fedora
)
, the
...
@@ -43,14 +24,16 @@ To build the toolchain from source, one needs:
...
@@ -43,14 +24,16 @@ To build the toolchain from source, one needs:
*
Clang 3.7, built from the same tree as LLVM
*
Clang 3.7, built from the same tree as LLVM
*
cmake, gcc (>=4.7), flex, bison
*
cmake, gcc (>=4.7), flex, bison
*
Add the
[
LLVM binary repo
](
http://llvm.org/apt/
)
to your apt sources
*
`echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty main" | sudo tee /etc/apt/sources.list.d/llvm.list`
*
`wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -`
*
`sudo apt-get update`
*
Install build dependencies
*
Install build dependencies
*
`sudo apt-get -y install bison build-essential cmake flex git libedit-dev python zlib1g-dev`
*
`sudo apt-get -y install bison build-essential cmake flex git libedit-dev python zlib1g-dev`
*
Install LLVM and Clang development libs
*
Build LLVM and Clang development libs
*
`sudo apt-get -y install libllvm3.7 llvm-3.7-dev libclang-3.7-dev`
*
`git clone http://llvm.org/git/llvm.git`
*
`cd llvm/tools; git clone http://llvm.org/git/clang.git`
*
`cd ..; mkdir -p build/install; cd build`
*
`cmake -G "Unix Makefiles" -DLLVM_TARGETS_TO_BUILD="BPF" -DCMAKE_INSTALL_PREFIX=$PWD/install ..`
*
`make -j4`
*
`make install`
*
`export PATH=$PWD/install/bin:$PATH`
*
Install and compile BCC
*
Install and compile BCC
*
`git clone https://github.com/iovisor/bcc.git`
*
`git clone https://github.com/iovisor/bcc.git`
*
`mkdir bcc/build; cd bcc/build`
*
`mkdir bcc/build; cd bcc/build`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment