Fix dependency install issue for CentOS/RedHat (#15382)

* add the missing tailing backslash

* install dependency tool wget for ubuntu only
This commit is contained in:
WangHuaqiang 2023-01-30 02:23:16 +08:00 committed by GitHub
parent 0da79e2f7d
commit c79f4cbb23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,8 @@ if [ -f /etc/lsb-release ] || [ -f /etc/debian_version ] ; then
python3-enchant \ python3-enchant \
`# samples and tools` \ `# samples and tools` \
libgflags-dev \ libgflags-dev \
zlib1g-dev zlib1g-dev \
wget
# TF lite frontend # TF lite frontend
if apt-cache search --names-only '^libflatbuffers-dev'| grep -q libflatbuffers-dev; then if apt-cache search --names-only '^libflatbuffers-dev'| grep -q libflatbuffers-dev; then
apt-get install -y --no-install-recommends libflatbuffers-dev apt-get install -y --no-install-recommends libflatbuffers-dev
@ -105,8 +106,8 @@ elif [ -f /etc/redhat-release ] || grep -q "rhel" /etc/os-release ; then
`# main openvino dependencies` \ `# main openvino dependencies` \
tbb-devel \ tbb-devel \
pugixml-devel \ pugixml-devel \
`# GPU plugin dependency` `# GPU plugin dependency` \
libva-devel libva-devel \
`# python API` \ `# python API` \
python3-pip \ python3-pip \
python3-devel \ python3-devel \
@ -152,7 +153,6 @@ required_cmake_ver=3.20.0
if [ ! "$(printf '%s\n' "$required_cmake_ver" "$current_cmake_ver" | sort -V | head -n1)" = "$required_cmake_ver" ]; then if [ ! "$(printf '%s\n' "$required_cmake_ver" "$current_cmake_ver" | sort -V | head -n1)" = "$required_cmake_ver" ]; then
installed_cmake_ver=3.23.2 installed_cmake_ver=3.23.2
arch=$(uname -m) arch=$(uname -m)
apt-get install -y --no-install-recommends wget
wget "https://github.com/Kitware/CMake/releases/download/v${installed_cmake_ver}/cmake-${installed_cmake_ver}-linux-${arch}.sh" wget "https://github.com/Kitware/CMake/releases/download/v${installed_cmake_ver}/cmake-${installed_cmake_ver}-linux-${arch}.sh"
chmod +x "cmake-${installed_cmake_ver}-linux-${arch}.sh" chmod +x "cmake-${installed_cmake_ver}-linux-${arch}.sh"
"./cmake-${installed_cmake_ver}-linux-${arch}.sh" --skip-license --prefix=/usr/local "./cmake-${installed_cmake_ver}-linux-${arch}.sh" --skip-license --prefix=/usr/local