Tuesday, December 11, 2018

Update cmake version without default setting in ubuntu


  1. Check your current version with cmake --version
  2. Uninstall it with sudo apt remove cmake
  3. Visit https://cmake.org/download/ and download the latest binaries
    • In my case cmake-3.6.2-Linux-x86_64.sh is sufficient
  4. chmod +x /path/to/cmake-3.6.2-Linux-x86_64.sh (use your own file location here, but chmod makes the script executable)
  5. sudo /path/to/cmake-3.6.2-Linux-x86_64.sh (you'll need to press y twice)
    The script installs to /opt/cmake-3.6.2-Linux-x86_64 so in order to get the cmakecommand, make a symbolic link:
  6. sudo ln -s /opt/cmake-3.6.2-Linux-x86_64/bin/* /usr/local/bin
    Test your results with cmake --version

1 comment:

  1. Merkur 3 Bar DE Razor - xn--o80b910a26eepc81il5g.online
    This Merkur 3 bar DE razor has 제왕카지노 a design very similar to the design 메리트 카지노 고객센터 of the Merkur 34C. The head is slanted slightly 메리트카지노

    ReplyDelete