cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
385
Views
5
Helpful
3
Replies

Need YDK85 installation step for the centos 8.2 or above version

hachinta
Cisco Employee
Cisco Employee

Hi Team,

 

We are using centos8.2  as the execution server so we are planning to install YDK85 on the same server.

 

We are following the below link steps, but we are facing some dependence packages issue.

https://ydkgen.readthedocs.io/en/latest/getting_started.html#documentation-and-support

https://ciscodevnet.github.io/ydk-py/getting_started.html#system-requirements

 

Kindly provide steps to install on centos8.2 or above version.

 

How do we get  YDK  git access ?

Snip:

[root@sanity-idt-lnx6 ~]# cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.2 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.2"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.2 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.2:GA"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.2
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.2"
[root@sanity-idt-lnx6 ~]#

3 Replies 3

ygorelik
Cisco Employee
Cisco Employee

Actually the referenced installation procedure has never been fully implemented as the binary files were not generated and deployed. Therefore I suggest you to move to the latest release YDK-0.8.6.2 recently published in CiscoDevNet repository and use installation script install_ydk.sh, which should take care of all the dependencies.

Regards,

Yan Gorelik

While installing GNMI. Observed below error: is it any know issue ?

(ydk_venv) [root@sanity-idt-lnx6 ydk-gen]# ./install_ydk.sh --service gnmi -v
YDK-0.8.6.2 installation options:
- create Python virtual environment = yes
- programming language = py
- install dependencies = yes
- install core package = no
- install service package = gnmi
*** Fri Apr 22 23:04:14 IST 2022 *** install_ydk.sh | Running OS type: Linux
*** Fri Apr 22 23:04:14 IST 2022 *** install_ydk.sh | OS info: NAME="Red Hat Enterprise Linux"
VERSION="8.2 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.2"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.2 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.2:GA"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.2
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.2"
Red Hat Enterprise Linux release 8.2 (Ootpa)
Red Hat Enterprise Linux release 8.2 (Ootpa)
*** Fri Apr 22 23:04:14 IST 2022 *** install_ydk.sh | LD_LIBRARY_PATH is set to: /root/grpc/libs/opt:/root/protobuf-3.5.0/src/.libs::/root/grpc/libs/opt:/root/protobuf-3.5.0/src/.libs:/usr/local/lib:/usr/local/lib64:/usr/local/lib:/usr/local/lib64:/usr/lib64
*** Fri Apr 22 23:04:14 IST 2022 *** install_ydk.sh | Running: /root/ydk-gen/test/dependencies_centos.sh
*** Fri Apr 22 23:04:14 IST 2022 *** dependencies_centos.sh | Installing dependencies
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - AppStream - Extended Update Support (RPMs) 47 kB/s | 2.8 kB 00:00
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 - Extended Update Support (RPMs) 58 kB/s | 2.8 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS - Extended Update Support (RPMs) 45 kB/s | 2.4 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - Supplementary - Extended Update Support (RPMs) 46 kB/s | 2.1 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS - Extended Update Support (Debug RPMs) 37 kB/s | 2.1 kB 00:00
Red Hat Satellite Tools 6.9 for RHEL 8 x86_64 - Extended Update Support (RPMs) 45 kB/s | 2.1 kB 00:00
No match for argument: python3-venv
Error: Unable to find a match: python3-venv
*** Fri Apr 22 23:05:12 IST 2022 *** dependencies_centos.sh | Running Centos/RHEL version 8
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - AppStream - Extended Update Support (RPMs) 42 kB/s | 2.8 kB 00:00
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 - Extended Update Support (RPMs) 57 kB/s | 2.8 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS - Extended Update Support (RPMs) 36 kB/s | 2.4 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - Supplementary - Extended Update Support (RPMs) 41 kB/s | 2.1 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS - Extended Update Support (Debug RPMs) 41 kB/s | 2.1 kB 00:00
Red Hat Satellite Tools 6.9 for RHEL 8 x86_64 - Extended Update Support (RPMs) 44 kB/s | 2.1 kB 00:00
Package dnf-plugins-core-4.0.12-4.el8_2.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Updating Subscription Management repositories.
Error: No matching repo to modify: powertools.
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - AppStream - Extended Update Support (RPMs) 59 kB/s | 2.8 kB 00:00
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 - Extended Update Support (RPMs) 54 kB/s | 2.8 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS - Extended Update Support (RPMs) 48 kB/s | 2.4 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - Supplementary - Extended Update Support (RPMs) 45 kB/s | 2.1 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS - Extended Update Support (Debug RPMs) 42 kB/s | 2.1 kB 00:00
Red Hat Satellite Tools 6.9 for RHEL 8 x86_64 - Extended Update Support (RPMs) 36 kB/s | 2.1 kB 00:00
Package doxygen-1:1.8.14-12.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
/usr/bin/gcc
*** Fri Apr 22 23:05:29 IST 2022 *** dependencies_centos.sh | Current gcc/g++ version is 8.3.1
*** Fri Apr 22 23:05:29 IST 2022 *** dependencies_centos.sh | Current Go version is 1.13.1
/root/ydk-gen/3d_party/linux/ubuntu/lib/libssh_threads.so.4.5.0
/usr/lib64/libssh_threads.so
/usr/lib64/libssh_threads.so.4
/usr/lib64/libssh_threads.so.4.8.1
/var/lib/docker/overlay2/8deab155a312de9eed3f09c3b28eaa892542889b08ae49858bcb0f92c745f4d1/diff/usr/lib64/libssh_threads.so
/var/lib/docker/overlay2/8deab155a312de9eed3f09c3b28eaa892542889b08ae49858bcb0f92c745f4d1/diff/usr/lib64/libssh_threads.so.4
/var/lib/docker/overlay2/8deab155a312de9eed3f09c3b28eaa892542889b08ae49858bcb0f92c745f4d1/diff/usr/lib64/libssh_threads.so.4.4.0
*** Fri Apr 22 23:05:29 IST 2022 *** install_ydk.sh | Running: /root/ydk-gen/test/dependencies_linux_gnmi.sh
*** Fri Apr 22 23:05:29 IST 2022 *** dependencies_linux_gnmi.sh | Compiling grpc
third_party/cares/cares/ares_init.c: In function 'ares_dup':
third_party/cares/cares/ares_init.c:301:17: error: argument to 'sizeof' in 'strncpy' call is the same expression as the source; did you mean to use the size of the destination? [-Werror=sizeof-pointer-memaccess]
sizeof(src->local_dev_name));
^
third_party/cares/cares/ares_init.c: At top level:
cc1: error: unrecognized command line option '-Wno-invalid-source-encoding' [-Werror]
cc1: all warnings being treated as errors
make: *** [Makefile:2606: /root/grpc/objs/opt/third_party/cares/cares/ares_init.o] Error 1
*** Fri Apr 22 23:05:31 IST 2022 *** dependencies_linux_gnmi.sh | Failed to compile grpc code; exiting
*** Fri Apr 22 23:05:31 IST 2022 *** install_ydk.sh | Exiting '/root/ydk-gen/test/dependencies_linux_gnmi.sh' with status=2
(ydk_venv) [root@sanity-idt-lnx6 ydk-gen]#

This issue has already been reported and solved. See the solution in this discussion.

Yan

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: