Documentation: https://github.com/tmux/tmux/wiki/Installing#building-dependencies
- Debian 11 (Bullseye), install:
apt install build-essential bison pkg-config libssl-dev
- libevent
- source: https://github.com/libevent/libevent
wget 'https://github.com/libevent/libevent/releases/tag/release-2.1.12-stable'
Extract and cd into it.
#!/bin/sh
set -e
TARGETDIR=$HOME/.local \
./configure --prefix $TARGETDIR
make
make install
- ncurses
- source: https://invisible-island.net/ncurses/ncurses.html#download_ncurses
wget 'https://invisible-island.net/datafiles/release/ncurses.tar.gz'
Extract and cd into it.
#!/bin/sh
set -e
TARGETDIR=$HOME/.local
./configure --prefix=$TARGETDIR --with-termlib --enable-pc-files \
--with-pkg-config-libdir=$TARGETDIR/lib/pkgconfig \
--with-default-terminfo-dir=/usr/share/terminfo \
--with-terminfo-dirs="/etc/terminfo:/lib/terminfo:/usr/share/terminfo"
make
make install
- tmux
- source: https://github.com/tmux/tmux/releases
wget 'https://github.com/tmux/tmux/releases/download/3.2a/tmux-3.2a.tar.gz'
Extract and cd into it.
#!/bin/sh
set -e
TARGETDIR=$HOME/.local
PKG_CONFIG_PATH=$TARGETDIR/lib/pkgconfig \
./configure --enable-static --prefix=$TARGETDIR
make
make install
5. references
https://gist.github.com/mbreese/b0630195e57874c87ef3611d059d1bc2