mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
optimise install_deps.sh (#25942)
Signed-off-by: xiedeyantu <czjourney@163.com>
This commit is contained in:
parent
3eb870c8d6
commit
703f0a187c
@ -45,7 +45,13 @@ function install_linux_deps() {
|
||||
exit 1
|
||||
fi
|
||||
# install cmake
|
||||
wget -qO- "https://cmake.org/files/v3.24/cmake-3.24.0-linux-x86_64.tar.gz" | sudo tar --strip-components=1 -xz -C /usr/local
|
||||
cmake_version=$(echo "$(cmake --version | head -1)" | grep -o '[0-9][\.][0-9]*')
|
||||
if [ ! $cmake_version ] || [ `expr $cmake_version \>= 3.24` -eq 0 ]; then
|
||||
echo "cmake version $cmake_version is less than 3.24, wait to installing ..."
|
||||
wget -qO- "https://cmake.org/files/v3.24/cmake-3.24.0-linux-x86_64.tar.gz" | sudo tar --strip-components=1 -xz -C /usr/local
|
||||
else
|
||||
echo "cmake version is $cmake_version"
|
||||
fi
|
||||
}
|
||||
|
||||
function install_mac_deps() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user