From 4eb9e98234e33be87cf4706ab6fe2502cfea594c Mon Sep 17 00:00:00 2001 From: Petr Nyc Date: Mon, 5 Feb 2024 17:13:51 +0100 Subject: [PATCH] add information on building tmux local to home directory --- README.org | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/README.org b/README.org index 5d74b09..57c8e6e 100644 --- a/README.org +++ b/README.org @@ -44,3 +44,66 @@ You can also download fonts like this: wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf #+end_src + +** tmux in User's home directory +If you want to build tmux independend of other parts of the system, cut&paste from the code snippet below should do the trick. +run export PATH=$HOME/usr/local:$PATH to pick up correct libraries and binaries +#+begin_src bash + #!/usr/bin/env bash + set -e + set -x + + BUILD_DIR=$HOME/usr/local + mkdir -p $BUILD_DIR + cd $BUILD_DIR/src + curl https://ftp.acc.umu.se/mirror/gnu.org/gnu/m4/m4-1.4.19.tar.gz --output m4-1.4.19.tar.gz + tar xzvf m4-1.4.19.tar.gz; cd m4-1.4.19 + ./configure --prefix=$BUILD_DIR + make install + + cd $BUILD_DIR + curl https://ftp.acc.umu.se/mirror/gnu.org/gnu/autoconf/autoconf-2.72.tar.gz --output autoconf-2.72.tar.gz + tar xvzf autoconf-2.72.tar.gz + cd $BUILD_DIR/src/autoconf-2.72 + ./configure --prefix=$BUILD_DIR + make install + + curl https://ftp.acc.umu.se/mirror/gnu.org/gnu/automake/automake-1.16.5.tar.gz --output automake-1.16.5.tar.gz + tar xvzf automake-1.16.5.tar.gz + cd $BUILD_DIR/src/automake-1.16.5 + ./configure --prefix=$BUILD_DIR + make install + + curl https://ftp.gnu.org/gnu/libtool/libtool-2.4.7.tar.gz -o libtool-2.4.7.tar.gz + tar xvzf libtool-2.4.7.tar.gz + cd $BUILD_DIR/src/libtool-2.4.7 + ./configure --prefix=$BUILD_DIR + make install + + #pkg-config + curl https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz -o pkg-config-0.29.2.tar.gz + tar xvzf pkg-config-0.29.2.tar.gz + cd $BUILD_DIR/src/pkg-config-0.29.2 + ./configure --prefix=$BUILD_DIR --with-internal-glib + + cd $BUILD_DIR/src + git clone https://github.com/libevent/libevent.git -b master + cd libevent + ./autogen.sh + ./configure --prefix=$BUILD_DIR + + # utf8proc + cd $BUILD_DIR/src + git clone --depth 1 https://github.com/JuliaStrings/utf8proc.git -b v2.9.0 + cd utf8proc + sed -i '' 's/^prefix=\/usr\/local/prefix=\$(HOME)\/usr\/local/' Makefile + make prefix=$BUILD_DIR + + cd $BUILD_DIR/src + git clone --depth 1 --branch 3.3a https://github.com/tmux/tmux.git + cd $BUILD_DIR/src/tmux + ./autogen.sh + ./configure --prefix=$BUILD_DIR --enable-utf8proc + make -j7 + make install +#+end_src