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
When trying install YDK on fresh new CentOS 7 docker container, the installation script fails with error:
System Information
YDK-0.8.6.3