Skip to content

Commit

Permalink
update INSTALL.md for Centos
Browse files Browse the repository at this point in the history
- add git, bison, flex and ncurses-devel as dependencies
- add a simple way of installing LLVM

Signed-off-by: Kyle Zhang <[email protected]>
  • Loading branch information
kylezh authored and yonghong-song committed Jun 30, 2019
1 parent fed5b68 commit bb47703
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,12 +402,14 @@ For Centos 7.6 only
sudo yum install -y epel-release
sudo yum update -y
sudo yum groupinstall -y "Development tools"
sudo yum install -y elfutils-libelf-devel cmake3
sudo yum install -y elfutils-libelf-devel cmake3 git bison flex ncurses-devel
sudo yum install -y luajit luajit-devel # for Lua support
```

### Install and compile LLVM

You could compile LLVM from source code

```
curl -LO http:https://releases.llvm.org/7.0.1/llvm-7.0.1.src.tar.xz
curl -LO http:https://releases.llvm.org/7.0.1/cfe-7.0.1.src.tar.xz
Expand All @@ -431,6 +433,17 @@ sudo make install
cd ..
```

or install from centos-release-scl

```
yum install -y centos-release-scl
yum-config-manager --enable rhel-server-rhscl-7-rpms
yum install -y devtoolset-7 llvm-toolset-7 llvm-toolset-7-llvm-devel llvm-toolset-7-llvm-static llvm-toolset-7-clang-devel
source scl_source enable devtoolset-7 llvm-toolset-7
```

For permanently enable scl environment, please check https://access.redhat.com/solutions/527703.

### Install and compile BCC

```
Expand Down

0 comments on commit bb47703

Please sign in to comment.