add information on building tmux local to home directory

osd-dev
Petr Nyc 2 years ago
parent 79c42230d7
commit 4eb9e98234
  1. 63
      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

Loading…
Cancel
Save