... | ... | @@ -73,6 +73,8 @@ sudo yum install centos-release-scl |
|
|
|
|
|
# If you don't already have git installed, it is needed to fetch the source
|
|
|
sudo yum install git
|
|
|
# We also need to grab some packages via wget
|
|
|
sudo yum install wget
|
|
|
|
|
|
# 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).
|
... | ... | @@ -89,12 +91,15 @@ cd libredblack |
|
|
./configure
|
|
|
make
|
|
|
sudo make install
|
|
|
cd ..
|
|
|
|
|
|
# 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
|
|
|
# During time of writing this document that was 0.16-r2.
|
|
|
wget https://github.com/CESNET/libyang/archive/v0.16-r2.tar.gz
|
|
|
tar zxvf v0.16-r2.tar.gz
|
|
|
mv v0.16-r2 libyang-0.16-r2
|
|
|
cd libyang-0.16-r2; mkdir build; cd build
|
|
|
cmake ..
|
|
|
make
|
|
|
sudo make install
|
... | ... | @@ -103,7 +108,9 @@ cd .. |
|
|
# 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
|
|
|
wget https://github.com/sysrepo/sysrepo/archive/v0.7.5.tar.gz
|
|
|
tar zxvf v0.7.5.tar.gz
|
|
|
mv v0.7.5 sysrepo-0.7.5
|
|
|
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 ..
|
... | ... | |