Skip to content

Latest commit

 

History

History
100 lines (73 loc) · 1.91 KB

install.rst

File metadata and controls

100 lines (73 loc) · 1.91 KB

Installation

2   Packages

Some packages are required. The following are example of debian-based packages:

sudo apt install flex bison git make gcc libnghttp2-dev libssl-dev

3   Source

Check out the following GIT repos:

4   Building

The source is built as follows.

4.1   Cligen

cd cligen
./configure
make
sudo make install

4.2   Clixon

cd clixon
./configure
make
sudo make install

4.3   Python API

Either use PIP or Debian packages.

PIP:

cd clixon-pyapi
sudo -u clicon pip3 install -r requirements.txt
sudo python3 setup.py install

Debian:

cd clixon-pyapi
sudo ./requirements-apt.sh
sudo python3 setup.py install

4.4   Controller

cd clixon-controller
./configure
make
sudo make install

5   Configure options

The Controller configure script (generated by autoconf) includes several options apart from the standard ones.

These include (standard options are omitted)
--enable-debug Build with debug symbols, default: no
--with-cligen=dir
 Use CLIGEN here
--with-clixon=dir
 Use Clixon here
--with-yang-installdir=DIR
 Install Yang files here (default: ${prefix}/share/clixon/controller)
--with-clicon-user=user
 Run as this user in example and test
--with-clicon-group=group
 Run as this group in example and test

6   Python install

Install the python code by copy:

sudo cp clixon_server.py /usr/local/bin/

Add a new clicon user and install the needed Python packages, the backend will start the Python server and drop the privileges to this user:

sudo useradd -g clicon -m clicon