... | ... | @@ -178,18 +178,11 @@ sudo make install |
|
|
|
|
|
Note: Sysrepo has many more compilation flags that may be considered, including storage location, access permissions and more. For detailed instructions, see Build and Installation Steps Section on the project page for libyang 1.x: https://github.com/sysrepo/sysrepo/tree/libyang1.
|
|
|
|
|
|
**STEP 3**: Configure kea's `sysrepo_config` tool. Copy file `tools/sysrepo_config_defines.sh.sample` to `tools/sysrepo_config_defines.sh` and edit `LIBYANG_PATH` and `SYSREPO_PATH` variables. If both were installed in the default locations, the file should contain the following:
|
|
|
```
|
|
|
export LIBYANG_PATH="/usr/local"
|
|
|
export SYSREPO_PATH="/usr/local"
|
|
|
```
|
|
|
**STEP 3**: Install dependency:
|
|
|
|
|
|
You can test if this step looks complete by calling `tools/sysrepo_config --libs libsysrepo`. It should print the locations where sysrepo and libyang are located, similar to this:
|
|
|
`sudo apt install libpcre3-dev`
|
|
|
|
|
|
```
|
|
|
$ tools/sysrepo_config --libs libsysrepo-cpp
|
|
|
-L/usr/local/lib/ -L/usr/local/lib/ -lyang-cpp -lsysrepo-cpp
|
|
|
```
|
|
|
This library is needed just to appease pkg-config dependency.
|
|
|
|
|
|
**STEP 4**: Compile Kea with Sysrepo enabled: ```./configure --with-sysrepo=./tools/sysrepo_config```. Once the configure script completes, it will print many configuration options. The section about Sysrepo should look similar to this:
|
|
|
|
... | ... | |