Skip to content

Commit

Permalink
Update Readme for building instructions on older Ubuntu 18.04 LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
phaag committed Jun 17, 2023
1 parent 837419b commit 4b7c42a
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,24 +117,35 @@ See __--enable-jnat__ below
The toolset is build upon the autotools framework. Run `./autogen.sh` first.
Afterwards `./configure` `make` and `make install` should do the trick.

If you run CentOS 7.x you need to install a more recent compiler:
For various older Linuxes need a more modern compiler:

#### CentOS 7.x:

```c
yum install centos-release-scl
% yum install centos-release-scl
```

Then you can install GCC 8 and its C++ compiler:

```c
yum install devtoolset-8-gcc devtoolset-8-gcc-c++
% yum install devtoolset-8-gcc devtoolset-8-gcc-c++
```

To switch to a shell which defaults `gcc` and `g++` to this GCC version, use:

```c
scl enable devtoolset-8 -- bash
% scl enable devtoolset-8 -- bash
```

#### Ubuntu 18.04 LTS:

```c
% sudo apt-get install clang-10
% CC=clang-10 ./configure ...
```



The following config options are available:

* __--enable-sflow__
Expand Down

0 comments on commit 4b7c42a

Please sign in to comment.