Skip to content

Commit

Permalink
readme: add documentation for using gcc 7/clang 5
Browse files Browse the repository at this point in the history
Signed-off-by: Thiery Ouattara <[email protected]>
  • Loading branch information
outscale-toa committed Jun 19, 2019
1 parent e9516f9 commit cd0fae4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,24 @@ $ wget http://cbs.centos.org/kojifiles/packages/jemalloc/3.6.0/8.el7.centos/x86_
$ wget http://cbs.centos.org/kojifiles/packages/jemalloc/3.6.0/8.el7.centos/x86_64/jemalloc-3.6.0-8.el7.centos.x86_64.rpm
$ sudo rpm -i jemalloc-devel-3.6.0-8.el7.centos.x86_64.rpm jemalloc-3.6.0-8.el7.centos.x86_64.rpm
```
You can install gcc 7 and clang 5 on CentOS with:

```
$ sudo su
# cd /etc/pki/rpm-gpg
# wget -O RPM-GPG-KEY-redhat-devel https://www.redhat.com/security/data/a5787476.txt
# rpm --import RPM-GPG-KEY-redhat-devel
# yum install devtoolset-7 llvm-toolset-7
# yum install llvm-toolset-7-clang-analyzer llvm-toolset-7-clang-tools-extra # optional
# exit
$ scl enable devtoolset-7 llvm-toolset-7 bash
$ # Optionally permanently enable GCC 7 / Clang 5
$ echo "source scl_source enable devtoolset-7 llvm-toolset-7" >> ~/.bashrc
```
For more information you can see [developers.redhat.com](https://developers.redhat.com/blog/2018/07/07/yum-install-gcc7-clang)

## Build DPDK

Expand Down

0 comments on commit cd0fae4

Please sign in to comment.