05-11-2020 11:51 PM
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.
Solved! Go to Solution.
05-12-2020 08:56 AM
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.
05-12-2020 08:56 AM
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.
05-12-2020 10:05 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide