Skip to content
perpen edited this page Sep 25, 2019 · 3 revisions

This page lists various tips to build kakoune with specific options or on esoteric platforms. For more common info about building, refer to the dedicated section in the README.

Building with clang

Bash shell

cd src
export CXX=clang++; make

Fish shell

cd src
env CXX=clang++ make

Building on GuixSD

cd kakoune/src
guix environment --ad-hoc gcc@6.3.0 make@4.2.1 boost@1.61.0 ncurses@6.0 libstdc++@4.9.4 binutils@2.27
make
env LD_LIBRARY_PATH=$LIBRARY_PATH ./kak

Building using a gcc container

On my debian stretch VM I am unable to install gcc v7. This uses an official docker image for gcc to build the binary then install it on the host.

dir=/usr/local/lib/kakoune
docker run --rm -v /tmp:/out gcc:7.3 bash -c \
    "set -x \
    && git clone https://github.com/mawww/kakoune.git \
    && cd kakoune/src \
    && make \
    && make PREFIX=$dir install \
    && ln -s $dir/bin/kak /usr/local/bin/ \
    && tar cfz /out/kak.tgz $dir /usr/local/bin/kak"
sudo rm -rf $dir
sudo tar xfz /tmp/kak.tgz -C/
Clone this wiki locally