Upgrading CMake
The built-in CMake software on the OS does not meet the compilation requirements on ONNX Runtime 1.19.2. Upgrade CMake to 3.26.0 or later. The following uses CMake 3.30.0 as an example.
- Download CMake 3.30.0 and upload it to the /home directory on the server.
- Decompress the package.
tar -zxvf cmake-3.30.0.tar.gz
- Go to the decompressed CMake directory.
cd cmake-3.30.0
- Upgrade CMake.
./bootstrap


make -j 16
The -j 16 option leverages the multiple cores of the CPU to accelerate the compilation. The number following -j indicates the number of CPU cores, which can be queried by running the following command. The parameter of -j must be less than or equal to the number of CPU cores.
cat /proc/cpuinfo | grep processor | wc -l
make install

- Clear the cache.
hash -r
- Check whether the CMake version is 3.30.0.
/usr/local/bin/cmake --version
If the following information is displayed, the upgrade is successful.

Parent topic: Configuring the Compilation Environment