onnxruntime/dockerfiles/scripts/install_centos_arm64.sh
Changming Sun 5b826b1bc3
Update cmake version in Linux build (#15707)
### Description
All our Windows build pipelines already uses cmake 3.26 except one
pipeline: QNN ARM64.
This PR does the same for Linux build pipelines.

### Motivation and Context
This change is related to #15704 .
2023-04-27 20:02:33 -07:00

23 lines
1 KiB
Bash
Executable file

yum-config-manager --enable extras
yum -y install centos-release-scl-rh
# EPEL support (for yasm)
if ! rpm -q --quiet epel-release ; then
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
fi
yum install -y devtoolset-10-binutils devtoolset-10-gcc devtoolset-10-gcc-c++ devtoolset-10-gcc aria2 python3-pip python3-wheel git python3-devel
ARCH=`uname -m`
if [ "$ARCH" = "aarch64" ]; then
aria2c -q -d /tmp -o cmake-3.26.3-linux-aarch64.tar.gz https://github.com/Kitware/CMake/releases/download/v3.26.3/cmake-3.26.3-linux-aarch64.tar.gz && tar -zxf /tmp/cmake-3.26.3-linux-aarch64.tar.gz --strip=1 -C /usr
else
aria2c -q -d /tmp https://github.com/Kitware/CMake/releases/download/v3.26.3/cmake-3.26.3.tar.gz
cd /tmp
mkdir cmake
cd cmake
tar --strip=1 -zxvf /tmp/cmake-3.26.3.tar.gz
./configure --prefix=/usr --parallel=$(nproc)
make -j$(nproc)
make install
fi
python3 -m pip install --upgrade pip
python3 -m pip install numpy
python3 -m pip install packaging