install some packages "Run Packages" and "Build Packages"
[root@vm02 ~]# yum install libevent ncurses libevent-devel ncurses-devel gcc make bison pkg-config *snip* Installed: bison.x86_64 0:3.0.4-2.el7 gcc.x86_64 0:4.8.5-39.el7 libevent.x86_64 0:2.0.21-4.el7 libevent-devel.x86_64 0:2.0.21-4.el7 ncurses-devel.x86_64 0:5.9-14.20130511.el7_4 Dependency Installed: cpp.x86_64 0:4.8.5-39.el7 glibc-devel.x86_64 0:2.17-307.el7.1 glibc-headers.x86_64 0:2.17-307.el7.1 kernel-headers.x86_64 0:3.10.0-1127.8.2.el7 libmpc.x86_64 0:1.0.1-3.el7 m4.x86_64 0:1.4.16-10.el7 mpfr.x86_64 0:3.1.1-4.el7 Dependency Updated: glibc.x86_64 0:2.17-307.el7.1 glibc-common.x86_64 0:2.17-307.el7.1 Complete! [root@vm02 ~]#
make and make install
[root@vm02 ~]# wget https://github.com/tmux/tmux/releases/download/3.1b/tmux-3.1b.tar.gz [root@vm02 ~]# ls -l tmux-3.1b.tar.gz -rw-r--r-- 1 root root 561152 May 4 17:10 tmux-3.1b.tar.gz [root@vm02 ~]# [root@vm02 ~]# tar -zxf tmux-3.1b.tar.gz [root@vm02 ~]# [root@vm02 ~]# cd tmux-3.1b -rwxr-xr-x 1 1000 1000 239664 May 4 17:08 configure [root@vm02 tmux-3.1b]# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for gcc option to accept ISO C99... -std=gnu99 checking how to run the C preprocessor... gcc -std=gnu99 -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for bison... bison -y checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking bitstring.h usability... no checking bitstring.h presence... no checking for bitstring.h... no checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for inttypes.h... (cached) yes checking libutil.h usability... no checking libutil.h presence... no checking for libutil.h... no checking ndir.h usability... no checking ndir.h presence... no checking for ndir.h... no checking paths.h usability... yes checking paths.h presence... yes checking for paths.h... yes checking pty.h usability... yes checking pty.h presence... yes checking for pty.h... yes checking for stdint.h... (cached) yes checking sys/dir.h usability... yes checking sys/dir.h presence... yes checking for sys/dir.h... yes checking sys/ndir.h usability... no checking sys/ndir.h presence... no checking for sys/ndir.h... no checking sys/tree.h usability... no checking sys/tree.h presence... no checking for sys/tree.h... no checking util.h usability... no checking util.h presence... no checking for util.h... no checking for library containing flock... none required checking for dirfd... yes checking for flock... yes checking for prctl... yes checking for sysconf... yes checking for asprintf... yes checking for cfmakeraw... yes checking for closefrom... no checking for explicit_bzero... no checking for fgetln... no checking for freezero... no checking for getdtablecount... no checking for getprogname... no checking for memmem... yes checking for recallocarray... no checking for reallocarray... no checking for setenv... yes checking for setproctitle... no checking for strcasestr... yes checking for strlcat... no checking for strlcpy... no checking for strndup... yes checking for strsep... yes checking for strtonum... no checking for working strnlen... yes checking for library containing clock_gettime... none required checking for LIBEVENT... yes checking event.h usability... yes checking event.h presence... yes checking for event.h... yes checking for LIBTINFO... yes checking for b64_ntop... no checking for b64_ntop with -lresolv... yes checking for library containing inet_ntoa... none required checking for library containing socket... none required checking for socket in -lxnet... no checking for CMSG_DATA... yes checking for err... yes checking for errx... yes checking for warn... yes checking for warnx... yes checking err.h usability... yes checking err.h presence... yes checking for err.h... yes checking for library containing imsg_init... no checking for daemon... yes checking whether daemon is declared... yes checking for stravis... no checking for library containing fdforkpty... no checking for library containing forkpty... -lutil checking for library containing kinfo_getfile... no checking whether TAILQ_CONCAT is declared... yes checking whether TAILQ_PREV is declared... yes checking whether TAILQ_REPLACE is declared... no checking for __progname... yes checking for program_invocation_short_name... yes checking whether PR_SET_NAME is declared... yes checking whether F_CLOSEM is declared... no checking for /proc/$$... yes checking platform... linux checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands [root@vm02 tmux-3.1b]#
execute "make" and "make install" command
[root@vm02 tmux-3.1b]# make *snip* [root@vm02 tmux-3.1b]# make install make[1]: Entering directory `/root/tmux-3.1b' /usr/bin/mkdir -p '/usr/local/bin' /usr/bin/install -c tmux '/usr/local/bin' make install-exec-hook make[2]: Entering directory `/root/tmux-3.1b' if test xmdoc = xmdoc; then \ sed -e "s|@SYSCONFDIR@|/etc|g" ./tmux.1 \ >./tmux.1.mdoc; \ else \ sed -e "s|@SYSCONFDIR@|/etc|g" ./tmux.1| \ gawk -f ./mdoc2man.awk >./tmux.1.man; \ fi /usr/bin/mkdir -p /usr/local/share/man/man1 /usr/bin/install -c -m 644 ./tmux.1.mdoc \ /usr/local/share/man/man1/tmux.1 make[2]: Leaving directory `/root/tmux-3.1b' make[1]: Nothing to be done for `install-data-am'. make[1]: Leaving directory `/root/tmux-3.1b' [root@vm02 tmux-3.1b]#
check version
[root@vm02 tmux-3.1b]# tmux -V tmux 3.1b [root@vm02 tmux-3.1b]#