CESNET / netopeer2

NETCONF toolset
BSD 3-Clause "New" or "Revised" License
290 stars 186 forks source link

Facing error while doing make install #1565

Open AravindaSwamy opened 2 months ago

AravindaSwamy commented 2 months ago

Hi Team,

We are facing the below error while installing netopeer2.

-- Installing missing sysrepo modules (setup.sh)...
CMake Error at cmake_install.cmake:111 (message):
   OUTPUT:

   ERROR:
   [ERR] Data model "ietf-yang-library@2019-01-04" not found in local searchdirs.
   [ERR] Loading "ietf-yang-library" module failed.
   sysrepoctl error: Failed to connect (libyang error)
   For more details you may try to increase the verbosity up to "-v3".
   [ERR] Data model "ietf-yang-library@2019-01-04" not found in local searchdirs.
   [ERR] Loading "ietf-yang-library" module failed.
   sysrepoctl error: Failed to connect (libyang error)
   For more details you may try to increase the verbosity up to "-v3".

make: *** [Makefile:86: install] Error 1

Can you please help on this.

Thanks, Aravind.

michalvasko commented 2 months ago

You have a mixup of sysrepo libraries/repositories that are using a different repository path. You need to clean it. The safest way is to completely uninstall sysrepo, run make sr_clean and then reinstall it.