cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1131
Views
0
Helpful
3
Replies

Need help on installing YDK 0.8.3 and its dependent libs.

kmathiya
Cisco Employee
Cisco Employee

Hi Team,

 

I have created a virtual environment and tried to install YDK 0.8.3, error observed in building wheel for ydk,

Attached text with detailed error report and current pip list.

 

Could you please guide on installing YDK and its dependent libs.

 

Added system/pkg info for reference,

root@theneer mgbl]# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.4.1708 (Core)
Release: 7.4.1708
Codename: Core

 

python --version
Python 3.5.0

 

(gnmiydk) [root@theneer mgbl]# yum info cmake
Available Packages
Name : cmake
Arch : x86_64
Version : 2.8.12.2
Release : 2.el7

 

Required package list:

ydk 0.8.3
ydk-models-cisco-ios-xr 6.5.1
ydk-models-cisco-thinxr-install 6.5.1
ydk-models-ietf 0.1.5.post2
ydk-models-openconfig 0.1.2

 

Thanks in advance.

 

Regards,

Kousalya

3 Replies 3

ygorelik
Cisco Employee
Cisco Employee

Hi Kousalya

You missed the whole System Requirements section. Please get to that item in the documentation and resolve all the dependencies.

First, you need to install libssh version 0.7.x. If installed, check that libssh_threads.a is also present. If present, check that LD_LIBRARY_PATH environment is set properly and includes corresponding library location. if libssh is not installed, follow this

Second, install libydk - C++ core library:

sudo yum install https://devhub.cisco.com/artifactory/rpm-ydk/0.8.3/libydk-0.8.3-1.x86_64.rpm

And finally install Python core package:

pip install -Uv ydk

Test installation:

python -c "import ydk.types"

 Good luck!

Hi Yan Gorelik,

 

Thanks for the information shared. 

YDK Installation still erroring out despite following all steps mentioned in System Requirements section. Added version detail in the attachment for reference(system_requirement.txt).

 

VENV tried with python 3.5.0.

 

Could you please help me to resolve the issue.

 

Regards,

Kousalya

ygorelik
Cisco Employee
Cisco Employee

Could you please attach installation log file, which shows the error.

Also need to see setting for the LD_LIBRARY_PATH variable. It must include paths where the libssh.a and libydk.a are installed.

Thanks,

Yan