... | ... | @@ -55,19 +55,29 @@ Note that older (1.3.0 and earlier) versions use --with-dhcp-mysql. Kea 1.4.0 an |
|
|
|
|
|
## Installing from sources with Sysrepo (optional)
|
|
|
|
|
|
2018-10-12: This information pertains to install upcoming Kea 1.5.0 on CentOS 7.5.
|
|
|
|
|
|
Sysrepo requires several extra dependencies like libredblack, libyang, etc.
|
|
|
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 autoconf automake libtool log4cplus-devel boost-devel gtest-devel
|
|
|
sudo yum install epel-release
|
|
|
sudo yum install libcmocka-devel
|
|
|
|
|
|
# Mocka is not needed (it's used for unit-tests for sysrepo)
|
|
|
# sudo yum install libcmocka-devel
|
|
|
|
|
|
sudo yum install centos-release-scl
|
|
|
|
|
|
# This installs gcc 7. The standard gcc available in CentOS (4.8.5) is too old to compile
|
|
|
# some of the dependencies (libyang requires at the very least a 4.9).
|
|
|
sudo yum install devtoolset-7-gcc*
|
|
|
|
|
|
# enter devtools environment, this sets path to GCC 7, etc
|
|
|
# Note: This command starts bash with paths set to use gcc7. Once you close that
|
|
|
# shell, your environment will revert back to the standard tools (GCC 4.8.5).
|
|
|
scl enable devtoolset-7 bash
|
|
|
|
|
|
# fetch, build and install libredblack
|
... | ... | @@ -77,26 +87,34 @@ cd libredblack |
|
|
make
|
|
|
sudo make install
|
|
|
|
|
|
# fetch, build and install libyang
|
|
|
git clone https://github.com/CESNET/libyang.git
|
|
|
cd libyang; mkdir build; cd build
|
|
|
# Install libyang
|
|
|
# Download the latest release version from https://github.com/CESNET/libyang/releases
|
|
|
# During time of writing this document that was 0.16-r1.
|
|
|
tar zxvf libyang-0.16-r1.tar.gz
|
|
|
cd libyang-0.16-r1; 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
|
|
|
# Install Sysrepo
|
|
|
# Download the latest release version from https://github.com/sysrepo/sysrepo/releases
|
|
|
# At the time of writing this document the latest version was 0.7.5.
|
|
|
tar zxvf sysrepo-0.7.5.tar.gz
|
|
|
cd sysrepo-0.7.5
|
|
|
mkdir build; cd build
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DGEN_LANGUAGE_BINDINGS=ON -DGEN_CPP_BINDINGS=ON -DGEN_PYTHON_BINDINGS=OFF -DGEN_LUA_BINDINGS=OFF -DENABLE_TESTS=OFF ..
|
|
|
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
|
|
|
# Install Kea
|
|
|
# Note: Once Kea 1.5.0 is available, you'll be able to download it from the FTP:
|
|
|
# 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
|
|
|
#
|
|
|
# Until 1.5.0 release, you can use the latest development version from the gitlab:
|
|
|
# git clone https://gitlab.isc.org/isc-projects/kea.git
|
|
|
cd kea-1.5.0
|
|
|
export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig
|
|
|
./configure --with-sysrepo
|
... | ... | |