cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1258
Views
0
Helpful
2
Replies

YDK install on CentOS 7 (CentOS Linux release 7.7.1908 (Core))

Hi All,

For installing YDK on Cent OS following prerequisites needs to be full filled as per documentation on ydk.io website. However some system requirements failing with following error for "devtoolset-4-gcc*". Could you please provide a solution.

# Install Third-party software dependencies
sudo yum install epel-release
sudo yum install libssh-devel gcc-c++ python-devel python3-devel

# Upgrade compiler to gcc 5.*
sudo yum install centos-release-scl -y > /dev/null
sudo yum install devtoolset-4-gcc* -y > /dev/null
sudo ln -sf /opt/rh/devtoolset-4/root/usr/bin/gcc /usr/bin/cc
sudo ln -sf /opt/rh/devtoolset-4/root/usr/bin/g++ /usr/bin/c++

# Install YDK core library
sudo yum install https://devhub.cisco.com/artifactory/rpm-ydk/0.8.3/libydk-0.8.3-1.x86_64.rpm

Command Output:

sudo yum install epel-release
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.mirrors.estointernet.in
* centos-sclo-rh: centos.mirrors.estointernet.in
* centos-sclo-sclo: centos.mirrors.estointernet.in
* epel: hkg.mirror.rackspace.com
* extras: centos.mirrors.estointernet.in
* remi: ftp.riken.jp
* remi-safe: ftp.riken.jp
* updates: centos.mirrors.estointernet.in
Package epel-release-7-12.noarch already installed and latest version
Nothing to do
sudo yum install libssh-devel gcc-c++ python-devel python3-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.mirrors.estointernet.in
* centos-sclo-rh: centos.mirrors.estointernet.in
* centos-sclo-sclo: centos.mirrors.estointernet.in
* epel: hkg.mirror.rackspace.com
* extras: centos.mirrors.estointernet.in
* remi: ftp.riken.jp
* remi-safe: ftp.riken.jp
* updates: centos.mirrors.estointernet.in
Package libssh-devel-0.7.1-7.el7.x86_64 already installed and latest version
Package gcc-c++-4.8.5-39.el7.x86_64 already installed and latest version
Package python-devel-2.7.5-88.el7.x86_64 already installed and latest version
Package python3-devel-3.6.8-13.el7.x86_64 already installed and latest version
Nothing to do
sudo yum install centos-release-scl -y 
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.mirrors.estointernet.in
* centos-sclo-rh: centos.mirrors.estointernet.in
* centos-sclo-sclo: centos.mirrors.estointernet.in
* epel: hkg.mirror.rackspace.com
* extras: centos.mirrors.estointernet.in
* remi: ftp.riken.jp
* remi-safe: ftp.riken.jp
* updates: centos.mirrors.estointernet.in
Package centos-release-scl-2-3.el7.centos.noarch already installed and latest version
Nothing to do
sudo yum install devtoolset-4-gcc* -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.mirrors.estointernet.in
* centos-sclo-rh: centos.mirrors.estointernet.in
* centos-sclo-sclo: centos.mirrors.estointernet.in
* epel: hkg.mirror.rackspace.com
* extras: centos.mirrors.estointernet.in
* remi: ftp.riken.jp
* remi-safe: ftp.riken.jp
* updates: centos.mirrors.estointernet.in
No package devtoolset-4-gcc* available.

 

Thanks & Regards
-- Uvindhu Jayasinghe --
1 Accepted Solution

Accepted Solutions

yangorelik
Spotlight
Spotlight

Hello Uvindhu

I am not sure, why you are installing older (0.8.3) version of YDK when newer (0.8.4) is available. Please note that newer version code was adjusted to be compiled with gcc-4.8.5 and hence does not need special gcc installation in CentOS-7.x. Detailed installation procedure can be found here.

As it was suggested in previous discussion the YDK core libraries should be compiled from source in order to pickup latest changes in libyang library.

 

Yan Gorelik
YDK Solutions

View solution in original post

2 Replies 2

yangorelik
Spotlight
Spotlight

Hello Uvindhu

I am not sure, why you are installing older (0.8.3) version of YDK when newer (0.8.4) is available. Please note that newer version code was adjusted to be compiled with gcc-4.8.5 and hence does not need special gcc installation in CentOS-7.x. Detailed installation procedure can be found here.

As it was suggested in previous discussion the YDK core libraries should be compiled from source in order to pickup latest changes in libyang library.

 

Yan Gorelik
YDK Solutions

Hi Yan,

I was refering the documentation on ydk.io site earlier. After using the guide in the link you shared issue was resolved. Thanks for the support.

Thanks & Regards
-- Uvindhu Jayasinghe --
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: