... | @@ -59,47 +59,47 @@ Sysrepo requires several extra dependencies like libredblack, |
... | @@ -59,47 +59,47 @@ Sysrepo requires several extra dependencies like libredblack, |
|
For more details check here: https://github.com/sysrepo/sysrepo/blob/master/INSTALL.md
|
|
For more details check here: https://github.com/sysrepo/sysrepo/blob/master/INSTALL.md
|
|
|
|
|
|
```
|
|
```
|
|
$ # install all pre-built/native dependencies
|
|
# 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 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 botan-devel log4cplus-devel boost-devel gtest-devel
|
|
$ sudo yum install epel-release
|
|
sudo yum install epel-release
|
|
$ sudo yum install libcmocka-devel
|
|
sudo yum install libcmocka-devel
|
|
$ sudo yum install centos-release-scl
|
|
sudo yum install centos-release-scl
|
|
$ sudo yum install devtoolset-7-gcc*
|
|
sudo yum install devtoolset-7-gcc*
|
|
|
|
|
|
$ # enter devtools environment, this sets path to GCC 7, etc
|
|
# enter devtools environment, this sets path to GCC 7, etc
|
|
$ scl enable devtoolset-7 bash
|
|
scl enable devtoolset-7 bash
|
|
|
|
|
|
$ # fetch, build and install libredblack
|
|
# fetch, build and install libredblack
|
|
$ git clone https://github.com/sysrepo/libredblack.git
|
|
git clone https://github.com/sysrepo/libredblack.git
|
|
$ cd libredblack
|
|
cd libredblack
|
|
$ ./configure
|
|
./configure
|
|
$ make
|
|
make
|
|
$ sudo make install
|
|
sudo make install
|
|
|
|
|
|
$ # fetch, build and install libyang
|
|
# fetch, build and install libyang
|
|
$ git clone https://github.com/CESNET/libyang.git
|
|
git clone https://github.com/CESNET/libyang.git
|
|
$ cd libyang; mkdir build; cd build
|
|
cd libyang; mkdir build; cd build
|
|
$ cmake ..
|
|
cmake ..
|
|
$ make
|
|
make
|
|
$ sudo make install
|
|
sudo make install
|
|
$ cd ..
|
|
cd ..
|
|
|
|
|
|
$ # fetch, build and install sysrepo
|
|
# fetch, build and install sysrepo
|
|
$ git clone https://github.com/sysrepo/sysrepo.git
|
|
git clone https://github.com/sysrepo/sysrepo.git
|
|
$ cd sysrepo
|
|
cd sysrepo
|
|
$ mkdir build; cd build
|
|
mkdir build; cd build
|
|
$ cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
$ make
|
|
make
|
|
$ sudo make install
|
|
sudo make install
|
|
$ cd ..
|
|
cd ..
|
|
|
|
|
|
$ # fetch, build and install kea
|
|
# fetch, build and install kea
|
|
$ wget -nd http://ftp.isc.org/isc/kea/1.5.0/kea-1.5.0.tar.gz
|
|
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
|
|
tar zxvf kea-1.5.0.tar.gz
|
|
$ cd kea-1.5.0
|
|
cd kea-1.5.0
|
|
$ export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig
|
|
export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig
|
|
$ ./configure --with-sysrepo
|
|
./configure --with-sysrepo
|
|
$ make
|
|
make
|
|
$ sudo make install
|
|
sudo make install
|
|
``` |
|
``` |