sudo yum update
sudo yum install python27-sphinx
+.. include:: building-libyang.rst
+
Get FRR, compile it and install it (from Git)
---------------------------------------------
json-c-devel pam-devel bison flex pytest c-ares-devel \
python-devel systemd-devel python-sphinx
+.. include:: building-libyang.rst
+
Get FRR, compile it and install it (from Git)
---------------------------------------------
sudo pip install pytest
+.. include:: building-libyang.rst
+
Get FRR, compile it and install it (from Git)
---------------------------------------------
libreadline-dev texinfo libjson-c-dev pkg-config bison flex \
python-pip libc-ares-dev python3-dev python-pytest python3-sphinx
+.. include:: building-libyang.rst
+
Get FRR, compile it and install it (from Git)
---------------------------------------------
json-c-devel pam-devel pytest bison flex c-ares-devel \
python3-devel python3-sphinx
+.. include:: building-libyang.rst
+
Get FRR, compile it and install it (from Git)
---------------------------------------------
::
pkg install git autoconf automake libtool gmake gawk json-c pkgconf \
- bison flex py27-pytest c-ares python3 py-sphinx
+ bison flex py27-pytest c-ares python3 py-sphinx libyang
Make sure there is no /usr/bin/flex preinstalled (and use the newly
installed in /usr/local/bin): (FreeBSD frequently provides a older flex
.. code-block:: shell
pkg install git autoconf automake libtool gmake gawk json-c pkgconf \
- bison flex py27-pytest c-ares python3 py36-sphinx texinfo
+ bison flex py27-pytest c-ares python3 py36-sphinx texinfo libyang
Make sure there is no /usr/bin/flex preinstalled (and use the newly
installed in /usr/local/bin): (FreeBSD frequently provides a older flex
mv /usr/bin/clang /usr/bin/clang34
ln -s /usr/local/bin/clang36 /usr/bin/clang
+.. include:: building-libyang.rst
+
Get FRR, compile it and install it (from Git)
---------------------------------------------
sudo ln -s /usr/pkg/bin/python2.7 /usr/bin/python
sudo ln -s /usr/pkg/bin/py.test-2.7 /usr/bin/py.test
+.. include:: building-libyang.rst
+
Get FRR, compile it and install it (from Git)
---------------------------------------------
sudo ln -s /usr/pkg/bin/python2.7 /usr/bin/python
sudo ln -s /usr/pkg/bin/py.test-2.7 /usr/bin/py.test
+.. include:: building-libyang.rst
+
Get FRR, compile it and install it (from Git)
---------------------------------------------
PATH=/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin:/opt/csw/bin
+.. include:: building-libyang.rst
+
Get FRR, compile it and install it (from Git)
---------------------------------------------
ln -s /usr/local/bin/python2.7 /usr/local/bin/python
+.. include:: building-libyang.rst
+
Get FRR, compile it and install it (from Git)
---------------------------------------------
pip install pytest
+.. include:: building-libyang.rst
+
Get FRR, compile it and install it (from Git)
---------------------------------------------
pkg-config libpam0g-dev libjson-c-dev bison flex python-pytest \
libc-ares-dev python3-dev python3-sphinx install-info
+.. include:: building-libyang.rst
+
Get FRR, compile it and install it (from Git)
---------------------------------------------
libc-ares-dev python3-dev libsystemd-dev python-ipaddress \
python3-sphinx install-info
+.. include:: building-libyang.rst
+
Get FRR, compile it and install it (from Git)
---------------------------------------------
libc-ares-dev python3-dev libsystemd-dev python-ipaddress \
python3-sphinx install-info
+.. include:: building-libyang.rst
+
Optional packages
^^^^^^^^^^^^^^^^^
--- /dev/null
+The libyang library can be installed from third-party packages available `here
+<https://ci1.netdef.org/browse/LIBYANG-YANGRELEASE/latestSuccessful/artifact>`_.
+
+Note: the libyang dev/devel packages need to be installed in addition
+to the libyang core package in order to build FRR successfully.
+
+Alternatively, libyang can be built and installed manually by following
+the steps below:
+
+.. code-block:: shell
+
+ git clone https://github.com/opensourcerouting/libyang
+ cd libyang
+ git checkout -b tmp origin/tmp
+ mkdir build; cd build
+ cmake -DENABLE_LYD_PRIV=ON ..
+ make
+ sudo make install
+
+When building libyang on CentOS 6, it's also necessary to pass the
+``-DENABLE_CACHE=OFF`` parameter to cmake.
+
+Note: please check the `libyang build requirements
+<https://github.com/CESNET/libyang/blob/master/README.md#build-requirements>`_
+first.