1, install ncurses library
1.1 Get the source
wget https://invisible-island.net/datafiles/release/ncurses.tar.gz tar xvf ncurses.tar.gz cd ~/ncurses-6.1
1.2, configure
./configure
1.3 compiler
make -j4
1.4 Installation
sudo make install
2, install libevent library
2.1 Get the source
git clone https://github.com/libevent/libevent.git cd libevent
2.2, configure
./autogen.sh
./configure --disable-samples
2.3 compiler
make -j4
2.4 Installation
sudo make install
3, installation tmux library
3.1 Get the source
git clone https://github.com/tmux/tmux.git cd tmux
3.2, generates configuration
3.2.1, you need to install pkg-config
sudo apt-get install pkg-config
Otherwise it will report the following error:
configure.ac:91: error: possibly undefined macro: AC_SEARCH_LIBS If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: /usr/bin/autoconf failed with exit status: 1 autoreconf failed
3.2.2, generates configuration
./autogen.sh
3.3, configure
./configure CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
3.4 compiler
3.4.1 If the lack of yacc, the compiler will complain when
yacc: command not found
Makefile:833: recipe for target 'cmd-parse.c' failed tmux
Available installation command follows:
sudo apt-get install byacc
3.4.2, the compiler execution
make -j4
3.5 Installation
sudo make install
3.6, the shared library settings
su # must use the root user before executing the following command echo " / usr / local / lib " >> / etc / ld.so.conf ldconfig