Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The installation script fails on fresh new CentOS 7 docker container #1064

Closed
ygorelik opened this issue Jun 9, 2022 · 0 comments
Closed
Assignees

Comments

@ygorelik
Copy link
Collaborator

ygorelik commented Jun 9, 2022

When trying install YDK on fresh new CentOS 7 docker container, the installation script fails with error:

[root@6d2784d33c3d ydk-gen]# ./install_ydk.sh --core -v
*** Thu Jun  9 15:32:08 UTC 2022 *** install_ydk.sh | YDKGEN_HOME is set to /root/ydk-gen 
YDK-0.8.6.3 installation options:
 - create Python virtual environment = yes
 - programming language = py
 - install dependencies = yes
 - install core package = yes
 - install service package = no
*** Thu Jun  9 15:32:08 UTC 2022 *** install_ydk.sh | Running OS type: Linux 
*** Thu Jun  9 15:32:08 UTC 2022 *** install_ydk.sh | OS info: CentOS Linux release 7.9.2009 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.9.2009 (Core)
CentOS Linux release 7.9.2009 (Core) 
./install_ydk.sh: line 480: lsb_release: command not found
*** Thu Jun  9 15:32:08 UTC 2022 *** install_ydk.sh | WARNING! Unsupported Centos/RHEL version. Will try the best efforts. 
*** Thu Jun  9 15:32:08 UTC 2022 *** install_ydk.sh | LD_LIBRARY_PATH is set to: :/usr/local/lib:/usr/local/lib64:/usr/lib64 
*** Thu Jun  9 15:32:08 UTC 2022 *** install_ydk.sh | Running: /root/ydk-gen/test/dependencies_centos.sh 
/root/ydk-gen/test/dependencies_centos.sh: line 187: [: !=: unary operator expected

System Information

YDK-0.8.6.3

@ygorelik ygorelik self-assigned this Jun 9, 2022
ygorelik pushed a commit to ygorelik/ydk-gen that referenced this issue Jun 9, 2022
@ygorelik ygorelik closed this as completed Jun 9, 2022
ygorelik pushed a commit to ygorelik/ydk-gen that referenced this issue Jun 16, 2022
ygorelik added a commit to ygorelik/ydk-gen that referenced this issue Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant