Closed kylebarron closed 6 years ago
To build tmux, need to install dependency:
sudo apt install libevent-dev
you can build libevent from here: http://libevent.org/
get latest release from https://github.com/tmux/tmux/releases then extract and build.
https://stackoverflow.com/questions/7561509/how-to-add-include-and-lib-paths-to-configure-make-cycle
mkdir -p ~/local/share
Then in ~/local/share/config.site
put
CPPFLAGS=-I$HOME/local/include
LDFLAGS=-L$HOME/local/lib
Then build libevent and tmux with ./configure --prefix=$HOME/local
, make
, make install
.
Then make sure the environment variable LD_LIBRARY_PATH
is set correctly.
export LD_LIBRARY_PATH=$HOME/local/lib
https://github.com/gpakosz/.tmux