Skip to content

Commit

Permalink
Add instructions on how to install amazon linux 2 from source
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Robinson authored and yonghong-song committed Sep 8, 2020
1 parent 4344034 commit 7ac370b
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ make
sudo make install
```

## Amazon Linux - Source
## Amazon Linux 1 - Source

Tested on Amazon Linux AMI release 2018.03 (kernel 4.14.47-56.37.amzn1.x86_64)

Expand Down Expand Up @@ -582,6 +582,46 @@ sudo mount -t debugfs debugfs /sys/kernel/debug
sudo /usr/share/bcc/tools/execsnoop
```

## Amazon Linux 2 - Source

```
# enable epel to get iperf, luajit, luajit-devel, cmake3 (cmake3 is required to support c++11)
sudo yum-config-manager --enable epel
sudo yum install -y bison cmake3 ethtool flex git iperf libstdc++-static python-netaddr gcc gcc-c++ make zlib-devel elfutils-libelf-devel
sudo yum install -y luajit luajit-devel
sudo yum install -y http:https://repo.iovisor.org/yum/extra/mageia/cauldron/x86_64/netperf-2.7.0-1.mga6.x86_64.rpm
sudo pip install pyroute2
sudo yum install -y ncurses-devel
```

### Install clang
```
yum install -y clang llvm llvm-devel llvm-static clang-devel clang-libs
```

### Build bcc
```
git clone https://github.com/iovisor/bcc.git
pushd .
mkdir bcc/build; cd bcc/build
cmake3 ..
time make
sudo make install
popd
```

### Setup required to run the tools
```
sudo yum -y install kernel-devel-$(uname -r)
sudo mount -t debugfs debugfs /sys/kernel/debug
```

### Test
```
sudo /usr/share/bcc/tools/execsnoop
```

## Alpine - Source

### Install packages required for building
Expand Down

0 comments on commit 7ac370b

Please sign in to comment.