|
|
|
## CentOS System-Specific Install Notes
|
|
|
|
|
|
|
|
2017-06-26: This page documents Kea installation on CentOS 7. It covers two installation procedures: using ready to use rpm (the easy one) and compiling from source (slightly more complicated, but still easy).
|
|
|
|
|
|
|
|
## Install from rpm packages
|
|
|
|
RPM packages are not available in base CentOS repositories, but they are available in EPEL (Extra Packages for Entreprise Linux), which is a very rich set of additional packages. If you never installed anything from EPEL, here's what you should do:
|
|
|
|
|
|
|
|
```#!bash
|
|
|
|
$ sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
|
|
|
$ sudo yum repolist
|
|
|
|
$ sudo yum install kea
|
|
|
|
```
|
|
|
|
|
|
|
|
The first command will add EPEL as additional packages repository to your system. You only need to do this if you never used EPEL before.
|
|
|
|
|
|
|
|
The second command will download list of available repositories. It seems like a good idea to issue that command every time before you install anything, so your list is up to date.
|
|
|
|
|
|
|
|
The this command installs kea package.
|
|
|
|
|
|
|
|
The downside of this approach is that as of today (2017-06-26), the version available as packages is 1.1.0. Hopefully, 1.2.0 will be packaged by EPEL maintainers soon. If you want to get 1.2.0, you should use installation from the sources instead.
|
|
|
|
|
|
|
|
## Install from sources
|
|
|
|
|
|
|
|
This approach requires a bit more work, but it gives you Kea 1.2.0.
|
|
|
|
|
|
|
|
First, you need to install dependencies. The following packages are a minimum to build kea: gcc-g++, openssl-devel, log4cplus-devel, boost-devel. wget is not needed, but it's a convenient tool for downloading kea (or any other files). If you need to support any optional databases (MySQL, PostgreSQL or Cassandra), please install development packages for them and use --with-dhcp-mysql, --with-dhcp-pgsql and/or --with-cql parameters for ./configure script.
|
|
|
|
|
|
|
|
```
|
|
|
|
$sudo yum install gcc-g++ openssl-devel log4cplus-devel boost-devel wget
|
|
|
|
```
|
|
|
|
|
|
|
|
Once those are installed, you can get kea sources and extract them:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ wget -nd http://ftp.isc.org/isc/kea/1.2.0/kea-1.2.0.tar.gz
|
|
|
|
$ tar zxvf kea-1.2.0.tar.gz
|
|
|
|
$ cd kea-1.2.0
|
|
|
|
$ ./configure --with-your-favourite-options-here
|
|
|
|
$ make
|
|
|
|
$ sudo make install
|
|
|
|
```
|
|
|
|
|
|
|
|
## Installing with MySQL (optional)
|
|
|
|
|
|
|
|
This is an optional dependency. You need it only if you want Kea to be able to store its information in MySQL:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ sudo yum install mariadb-devel
|
|
|
|
$ ./configure --with-dhcp-mysql [your other configuration parameters go here]
|
|
|
|
$ make
|
|
|
|
$ sudo make install
|
|
|
|
```
|
|
|
|
|
|
|
|
Note that older (1.3.0 and earlier) versions use --with-dhcp-mysql. Kea 1.4.0 and newer use --with-mysql. |
|
|
|
\ No newline at end of file |