mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-28 11:50:21 +00:00
49 lines
1.6 KiB
ReStructuredText
49 lines
1.6 KiB
ReStructuredText
FRR depends on the relatively new ``libyang`` library to provide YANG/NETCONF
|
|
support. Unfortunately, most distributions do not yet offer a ``libyang``
|
|
package from their repositories. Therefore we offer two options to install this
|
|
library.
|
|
|
|
**Option 1: Binary Install**
|
|
|
|
The FRR project builds some binary ``libyang`` packages.
|
|
|
|
RPM packages are at our `RPM repository <https://rpm.frrouting.org>`_.
|
|
|
|
DEB packages are available as CI artifacts `here
|
|
<https://ci1.netdef.org/browse/LIBYANG-LIBYANGV2/latestSuccessful/artifact>`_.
|
|
|
|
.. warning::
|
|
|
|
``libyang`` version 2.0.0 or newer is required to build FRR. Currently a tag
|
|
(``v2.0.0``) is used from the libyang2 branch.
|
|
|
|
.. note::
|
|
|
|
The ``libyang`` development packages need to be installed in addition to the
|
|
libyang core package in order to build FRR successfully. Make sure to
|
|
download and install those from the link above alongside the binary
|
|
packages.
|
|
|
|
Depending on your platform, you may also need to install the PCRE
|
|
development package. Typically this is ``libpcre-dev`` or ``pcre-devel``.
|
|
|
|
**Option 2: Source Install**
|
|
|
|
.. note::
|
|
|
|
Ensure that the `libyang build requirements
|
|
<https://github.com/CESNET/libyang/tree/libyang2#build-requirements>`_
|
|
are met before continuing. Usually this entails installing ``cmake`` and
|
|
``libpcre-dev`` or ``pcre-devel``.
|
|
|
|
.. code-block:: console
|
|
|
|
git clone https://github.com/CESNET/libyang.git -b libyang2
|
|
cd libyang
|
|
git checkout v2.0.0
|
|
mkdir build; cd build
|
|
cmake -D CMAKE_INSTALL_PREFIX:PATH=/usr \
|
|
-D CMAKE_BUILD_TYPE:String="Release" ..
|
|
make
|
|
sudo make install
|