1 The libyang library can be installed from third-party packages available `here
2 <https://ci1.netdef.org/browse/LIBYANG-YANGRELEASE/latestSuccessful/artifact>`_.
4 Note: the libyang dev/devel packages need to be installed in addition
5 to the libyang core package in order to build FRR successfully.
7 For example, for CentOS 7.x:
11 wget https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-1/CentOS-7-x86_64-Packages/libyang-0.16.46-0.x86_64.rpm
12 wget https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-1/CentOS-7-x86_64-Packages/libyang-devel-0.16.46-0.x86_64.rpm
13 sudo rpm -i libyang-0.16.46-0.x86_64.rpm libyang-devel-0.16.46-0.x86_64.rpm
19 wget https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-1/Ubuntu-18.04-x86_64-Packages/libyang-dev_0.16.46_amd64.deb
20 wget https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-1/Ubuntu-18.04-x86_64-Packages/libyang_0.16.46_amd64.deb
21 sudo apt install libpcre3-dev
22 sudo dpkg -i libyang-dev_0.16.46_amd64.deb libyang_0.16.46_amd64.deb
24 Alternatively, libyang can be built and installed manually by following
29 git clone https://github.com/opensourcerouting/libyang
31 git checkout -b tmp origin/tmp
33 cmake -DENABLE_LYD_PRIV=ON ..
37 When building libyang on CentOS 6, it's also necessary to pass the
38 ``-DENABLE_CACHE=OFF`` parameter to cmake.
40 Note: please check the `libyang build requirements
41 <https://github.com/CESNET/libyang/blob/master/README.md#build-requirements>`_