Skip to content
Snippets Groups Projects
Commit 3b8addcd authored by Lars Bilke's avatar Lars Bilke
Browse files

[web] Install cmake via pip to get a more recent version.

On Ubuntu 18.04 the systems cmake package is at version 3.10 which
is too old.
parent 517d0eaa
No related branches found
No related tags found
No related merge requests found
...@@ -174,58 +174,60 @@ If you do not have rights to install a system package (e.g. on cluster systems) ...@@ -174,58 +174,60 @@ If you do not have rights to install a system package (e.g. on cluster systems)
::: :::
## Step: Install CMake ## Step: Install Python 3
::: {.win} ::: {.win}
- Download the installer, at the [CMake download page](http://www.cmake.org/cmake/resources/software.html) choose the **Windows (Win32 Installer)**.
- Execute the installer, please check the **Add CMake to the system path for all users**-option - [Download the Python 3 installer](https://www.python.org/ftp/python/3.7.2/python-3.7.2-amd64-webinstall.exe)
- Install with the following options
- Check *Add Python 3.X to PATH*
- *Customize installation*
- Make sure to have `pip` enabled (you may uncheck *Documentation*, *tcl/tk*, *Python test suite*)
- You may check *Install for all users*
- Check *Add Python to environment variables*!
::: :::
::: {.linux} ::: {.linux}
Install CMake with your favourite package manager (the two graphical user interfaces are optional):
Install Python 3 and pip:
```bash ```bash
$ sudo apt-get install cmake cmake-qt-gui cmake-curses-gui sudo apt-get install python3 python3-pip
``` ```
::: :::
::: {.mac} ::: {.mac}
Install CMake with Homebrew: Install Python 3 with Homebrew:
```bash ```bash
$ brew install cmake brew install python
``` ```
::: :::
## Step: Install Python 3 ## Step: Install CMake
::: {.win} ::: {.win}
- Download the installer, at the [CMake download page](http://www.cmake.org/cmake/resources/software.html) choose the **Windows (Win32 Installer)**.
- [Download the Python 3 installer](https://www.python.org/ftp/python/3.7.2/python-3.7.2-amd64-webinstall.exe) - Execute the installer, please check the **Add CMake to the system path for all users**-option
- Install with the following options
- Check *Add Python 3.X to PATH*
- *Customize installation*
- Make sure to have `pip` enabled (you may uncheck *Documentation*, *tcl/tk*, *Python test suite*)
- You may check *Install for all users*
- Check *Add Python to environment variables*!
::: :::
::: {.linux} ::: {.linux}
Install CMake with Pythons package manager `pip` (you may get a more recent version than using your systems package manager):
Install Python 3 and pip:
```bash ```bash
sudo apt-get install python3 python3-pip $ pip3 install --user cmake
``` ```
This installed `cmake` and `ccmake` to `.local/bin` in your home directory. Make sure to have this directory in your `PATH`!
::: :::
::: {.mac} ::: {.mac}
Install Python 3 with Homebrew: Install CMake with Homebrew:
```bash ```bash
brew install python $ brew install cmake
``` ```
::: :::
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment