From 97b3e93297de7828e211c3afb134f2f8f175ea92 Mon Sep 17 00:00:00 2001 From: Jeroen Hoek Date: Tue, 7 Jun 2022 08:02:55 +0200 Subject: [PATCH] Split instructions for Ubuntu 20.04 and 22.04 Signed-off-by: Jeroen Hoek --- docs/INSTALL.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 466b84383e..529f59ff7e 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -84,9 +84,8 @@ Installing *ccache* can speed up active development. _Ubuntu 20.04, 22.04:_ ```bash -sudo apt-get update && sudo apt-get install -y \ +sudo apt update && sudo apt install -y \ build-essential \ - cmake \ clang \ ninja-build \ python3 \ @@ -100,6 +99,18 @@ sudo apt-get update && sudo apt-get install -y \ zlib1g-dev ``` +For Ubuntu 20.04 the version of `cmake` that ships with Ubuntu is too old; a more recent version can be installed using `snap`: + +```bash +sudo snap install --classic cmake +``` + +For Ubuntu 22.04 `cmake` may be installed using `snap` as well, or alternatively by using `apt`: + +```bash +sudo apt install -y cmake +``` + _Fedora:_ ```bash