From c79f4cbb23b3bc06bbfe55bb57a15d9ed9ef7f95 Mon Sep 17 00:00:00 2001 From: WangHuaqiang Date: Mon, 30 Jan 2023 02:23:16 +0800 Subject: [PATCH] Fix dependency install issue for CentOS/RedHat (#15382) * add the missing tailing backslash * install dependency tool wget for ubuntu only --- install_build_dependencies.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install_build_dependencies.sh b/install_build_dependencies.sh index 22116ad4885..cb27d54852c 100755 --- a/install_build_dependencies.sh +++ b/install_build_dependencies.sh @@ -60,7 +60,8 @@ if [ -f /etc/lsb-release ] || [ -f /etc/debian_version ] ; then python3-enchant \ `# samples and tools` \ libgflags-dev \ - zlib1g-dev + zlib1g-dev \ + wget # TF lite frontend if apt-cache search --names-only '^libflatbuffers-dev'| grep -q libflatbuffers-dev; then 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` \ tbb-devel \ pugixml-devel \ - `# GPU plugin dependency` - libva-devel + `# GPU plugin dependency` \ + libva-devel \ `# python API` \ python3-pip \ 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 installed_cmake_ver=3.23.2 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" chmod +x "cmake-${installed_cmake_ver}-linux-${arch}.sh" "./cmake-${installed_cmake_ver}-linux-${arch}.sh" --skip-license --prefix=/usr/local