]> git.proxmox.com Git - mirror_frr.git/blob - doc/developer/building-libyang.rst
zebra: include lib/queue.h in zebra dataplane
[mirror_frr.git] / doc / developer / building-libyang.rst
1 The libyang library can be installed from third-party packages available `here
2 <https://ci1.netdef.org/browse/LIBYANG-YANGRELEASE/latestSuccessful/artifact>`_.
3
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.
6
7 For example, for CentOS 7.x:
8
9 .. code-block:: shell
10
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
14
15 or Ubuntu 18.04:
16
17 .. code-block:: shell
18
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
23
24 Alternatively, libyang can be built and installed manually by following
25 the steps below:
26
27 .. code-block:: shell
28
29 git clone https://github.com/opensourcerouting/libyang
30 cd libyang
31 git checkout -b tmp origin/tmp
32 mkdir build; cd build
33 cmake -DENABLE_LYD_PRIV=ON ..
34 make
35 sudo make install
36
37 When building libyang on CentOS 6, it's also necessary to pass the
38 ``-DENABLE_CACHE=OFF`` parameter to cmake.
39
40 Note: please check the `libyang build requirements
41 <https://github.com/CESNET/libyang/blob/master/README.md#build-requirements>`_
42 first.