# Outdated versions of CMake

**URL:** https://travis-ci.community/t/outdated-versions-of-cmake/8331
**Category:** Multi CPU Architecture
**Created:** [April 24, 2020, 3:51pm UTC](https://travis-ci.community/t/outdated-versions-of-cmake/8331 "2020-04-24T15:51:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![peastman](https://avatars.discourse-cdn.com/v4/letter/p/d78d45/32.png) [@peastman](https://travis-ci.community/u/peastman)
#### Post date: [April 24, 2020, 3:51pm UTC](https://travis-ci.community/t/outdated-versions-of-cmake/8331/1 "2020-04-24T15:51:06Z")

</div>

The ARM and PPC build environments come with very old versions of CMake. Would it be possible to update them to have the versions documented at [https://docs.travis-ci.com/user/languages/cpp/#cmake](https://docs.travis-ci.com/user/languages/cpp/#cmake)?

---

<div class="post-metadata">

### Author: ![peastman](https://avatars.discourse-cdn.com/v4/letter/p/d78d45/32.png) [@peastman](https://travis-ci.community/u/peastman)
#### Post date: [April 26, 2020, 6:54pm UTC](https://travis-ci.community/t/outdated-versions-of-cmake/8331/2 "2020-04-26T18:54:46Z")

</div>

For anyone else who has this problem, I managed to install a newer CMake like this:

```
- if [["${TRAVIS_CPU_ARCH}" == "ppc64le"]]; then
    sudo apt-get install libuv1 rhash libstdc++6;
    wget https://anaconda.org/conda-forge/cmake/3.17.0/download/linux-ppc64le/cmake-3.17.0-hfb1cb51_0.tar.bz2;
    mkdir $HOME/cmake;
    tar -xjvf cmake-3.17.0-hfb1cb51_0.tar.bz2 -C $HOME/cmake;
    export PATH=$HOME/cmake/bin:$PATH;
  fi
- if [["${TRAVIS_CPU_ARCH}" == "arm64"]]; then
    sudo apt-get install libuv1 rhash libstdc++6;
    wget https://anaconda.org/conda-forge/cmake/3.17.0/download/linux-aarch64/cmake-3.17.0-h28c56e5_0.tar.bz2;
    mkdir $HOME/cmake;
    tar -xjvf cmake-3.17.0-h28c56e5_0.tar.bz2 -C $HOME/cmake;
    export PATH=$HOME/cmake/bin:$PATH;
  fi

```

This should work on bionic and later. On xenial you’ll get an error about GLIBCXX because the version is too old.

---

<div class="post-metadata">

### Author: ![grooverdan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/grooverdan/32/5129_2.png) [@grooverdan](https://travis-ci.community/u/grooverdan)
#### Post date: [May 6, 2020, 4:12am UTC](https://travis-ci.community/t/outdated-versions-of-cmake/8331/3 "2020-05-06T04:12:41Z")

</div>

FYI - upstream feature request: [https://gitlab.kitware.com/cmake/cmake/issues/20122](https://gitlab.kitware.com/cmake/cmake/issues/20122)

---

<div class="post-metadata">

### Author: ![grooverdan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/grooverdan/32/5129_2.png) [@grooverdan](https://travis-ci.community/u/grooverdan)
#### Post date: [June 3, 2020, 2:17am UTC](https://travis-ci.community/t/outdated-versions-of-cmake/8331/4 "2020-06-03T02:17:15Z")

</div>

note per upstream feature request, snaps are now available on multiple arches:

so try:

`sudo snap install cmake --beta --classic`
