... | ... | @@ -40,7 +40,7 @@ $ make |
|
|
$ sudo make install
|
|
|
```
|
|
|
|
|
|
## Installing with MySQL (optional)
|
|
|
## Installing from sources 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:
|
|
|
|
... | ... | @@ -51,4 +51,55 @@ $ 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 |
|
|
Note that older (1.3.0 and earlier) versions use --with-dhcp-mysql. Kea 1.4.0 and newer use --with-mysql.
|
|
|
|
|
|
## Installing from sources with Sysrepo (optional)
|
|
|
|
|
|
Sysrepo requires several extra dependencies like libredblack,
|
|
|
For more details check here: https://github.com/sysrepo/sysrepo/blob/master/INSTALL.md
|
|
|
|
|
|
```
|
|
|
$ # install all pre-built/native dependencies
|
|
|
$ sudo yum install cmake bison flex pcre-devel libev-devel protobuf-c-devel protobuf-c-compiler make rpm-build doxygen swig
|
|
|
$ sudo yum install autoconf automake libtool botan-devel log4cplus-devel boost-devel gtest-devel
|
|
|
$ sudo yum install epel-release
|
|
|
$ sudo yum install libcmocka-devel
|
|
|
$ sudo yum install centos-release-scl
|
|
|
$ sudo yum install devtoolset-7-gcc*
|
|
|
|
|
|
$ # enter devtools environment, this sets path to GCC 7, etc
|
|
|
$ scl enable devtoolset-7 bash
|
|
|
|
|
|
$ # fetch, build and install libredblack
|
|
|
$ git clone https://github.com/sysrepo/libredblack.git
|
|
|
$ cd libredblack
|
|
|
$ ./configure
|
|
|
$ make
|
|
|
$ sudo make install
|
|
|
|
|
|
$ # fetch, build and install libyang
|
|
|
$ git clone https://github.com/CESNET/libyang.git
|
|
|
$ cd libyang; mkdir build; cd build
|
|
|
$ cmake ..
|
|
|
$ make
|
|
|
$ sudo make install
|
|
|
$ cd ..
|
|
|
|
|
|
$ # fetch, build and install sysrepo
|
|
|
$ git clone https://github.com/sysrepo/sysrepo.git
|
|
|
$ cd sysrepo
|
|
|
$ mkdir build; cd build
|
|
|
$ cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
|
$ make
|
|
|
$ sudo make install
|
|
|
$ cd ..
|
|
|
|
|
|
$ # fetch, build and install kea
|
|
|
$ wget -nd http://ftp.isc.org/isc/kea/1.5.0/kea-1.5.0.tar.gz
|
|
|
$ tar zxvf kea-1.5.0.tar.gz
|
|
|
$ cd kea-1.5.0
|
|
|
$ export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig
|
|
|
$ ./configure --with-sysrepo
|
|
|
$ make
|
|
|
$ sudo make install
|
|
|
``` |