From 6ea0b83a89ae684d6d48c16f9c1e9c080eb9cadf Mon Sep 17 00:00:00 2001 From: Tomek Mrugalski Date: Fri, 19 Oct 2018 16:20:36 +0200 Subject: [PATCH] [#65,!64] Reworked installation notes - mostly moved to wiki, also cleaned up some text --- doc/guide/netconf.xml | 92 +++++++++++++++++-------------------------- 1 file changed, 36 insertions(+), 56 deletions(-) diff --git a/doc/guide/netconf.xml b/doc/guide/netconf.xml index 4f7101932e..963f379936 100644 --- a/doc/guide/netconf.xml +++ b/doc/guide/netconf.xml @@ -6,7 +6,7 @@ - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> - + YANG/NETCONF Support
@@ -21,67 +21,47 @@
- Installing NETCONF Dependencies + Installing NETCONF - Note that to get NETCONF capabilities Kea uses Sysrepo software, which has many - dependencies. Unfortunately, many of them are not available as packages, so some need - to be compiled manually. - - The following installation instruction was tested on Ubuntu 18.04. - - STEP 1. Install dependencies. Note that some of those dependencies are likely to - be present in your system already. - - -$ sudo apt-get install git cmake build-essential bison flex libpcre3-dev libev-dev libavl-dev libprotobuf-c-dev protobuf-c-compiler swig - - - - - STEP 2. Install libyang. Download libyang from - . The version used - during Kea development was 0.16-r1. - - - libyang-0.16-r1.tar.gz - cd libyang-0.16-r1 - mkdir build - cd build - cmake .. - make - sudo make install - - - For detailed build instructions, see - + Note that to get NETCONF capabilities Kea uses Sysrepo software, which + has many dependencies. Unfortunately, some of them are not available as + packages and need to be compiled manually. Please note that libyang building requires a gcc version at least 4.9 so on some environments like CentOS 7.5 the system compiler cannot be used. - STEP 3. Install syrepo. Download sysrepo from - . - The version used during Kea development 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=Debug -DGEN_LANGUAGE_BINDINGS=ON -DGEN_CPP_BINDINGS=ON \ - -DGEN_PYTHON_BINDINGS=OFF -DGEN_LUA_BINDINGS=OFF -DENABLE_TESTS=OFF .. -make -sudo make install - - -For detailed instructions, see Build & Installation Steps Section on the project page -located at . - -
+ The following sections provide installation instructions for Ubuntu + 18.04 and CentOS7.5. Due to more modern compiler and many available + packages, the installation procedure is much simplers on Ubuntu. + +
+ Installing NETCONF on Ubuntu 18.04 + + For detailed installation instructions see + + Ubuntu installation notes page. +
+ +
+ Installing NETCONF on CentOS 7.5 + + For detailed installation instructions see + + CentOS installation notes page. + + CentOS 7.5 has a very old gcc compiler 4.8.5. Some sysrepo + dependencies require at least 4.9, which unfortunately means that + a new compiler has to be installed. Also, many of the Sysrepo dependencies + are not avalable in CentOS as packages, so for the time being they + need to be installed from sources. The situation is expected + to improve over time as more and more CentOS/RedHat packages + become available. + +
+
Quick sysrepo overview -- 2.47.2