summaryrefslogtreecommitdiff
path: root/README.asciidoc
diff options
context:
space:
mode:
authorHugo Musso Gualandi <hugo_musso_gualandi@hotmail.com>2022-03-20 16:15:16 +0100
committerHugo Musso Gualandi <hugo_musso_gualandi@hotmail.com>2022-03-20 16:22:27 +0100
commit73f0de4085d462ac38b620b29b4ca0258c6c49b2 (patch)
tree561c55f58f116d7b10e7ff51d0fdab0c77462306 /README.asciidoc
parent13b16815939edde8e151b2c141942f2771bd1b39 (diff)
Improved installation instructions for Ubuntu
Added information on how to install from the repositories. Improved the instructions for how to build from source, for those that don't want an ancient version of Kakoune. On Ubuntu 20.04 and earlier, GCC 10 is not the default so we have to explicitly tell `make` to use GCC 10. See also: https://github.com/mawww/kakoune/issues/4571
Diffstat (limited to 'README.asciidoc')
-rw-r--r--README.asciidoc11
1 files changed, 8 insertions, 3 deletions
diff --git a/README.asciidoc b/README.asciidoc
index 9c94cc89..94ea4538 100644
--- a/README.asciidoc
+++ b/README.asciidoc
@@ -205,12 +205,17 @@ sudo zypper install kakoune
[TIP]
.Ubuntu
====
-Building on Ubuntu 16.04 and 18.04.
-Make sure you have .local/bin in your path to make the kak binary available from your shell.
+Kakoune can be found in the Ubuntu repositories.
+
+----------------------------
+sudo apt install kakoune
+----------------------------
+
+If you want to compile from source on 20.04 or earlier, you must force the build to use GCC 10, which is not the default. Also, make sure you have .local/bin in your path so that kak is available after the installation.
----------------------------------------------------------------
git clone https://github.com/mawww/kakoune.git && cd kakoune/src
-make
+CXX=g++-10 make
PREFIX=$HOME/.local make install
----------------------------------------------------------------
====