tmux比较简单,很easy可以搞定。可是tmate,官方只给了mac和ubutn的安装,centos,完全不管......
A few dependencies are required. The Ubuntu packages names are:
git-core build-essential pkg-config libtool libevent-dev libncurses-dev zlib1g-dev automake libssh-dev cmake ruby
./autogen.sh && \./configure && \make && \make install
------------------------------------------------------------------------------------
% git clone https://github.com/nviennot/tmate.git
% cd tmate
% ./autogen.sh
% ./configure
% make
(2)网上找了一个,但是还是不行,libevent的头文件找不到。
To compile it on CentOS 7 follow these steps:
yum install git cmake ruby zlib-devel openssl-devel libevent-devel ncurses-develyum group install "Development Tools"
Then grab tmate source files and compile them:
git clone https://github.com/nviennot/tmate.gitcd tmate/./autogen.sh./configuremake
(3)最后在github上找一个方法,centos7终于可以解决了
# download latest libevent2 and tmux sources, and extract them somewhere
# (thx bluejedi for tip on latest tmux URL)
#
# at the time of writing:
# https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
# http://sourceforge.net/projects/tmux/files/latest/download?source=files
#
# install deps
yum install gcc kernel-devel make ncurses-devel
# cd to libevent2 src
./configure --prefix=/usr/local
make && make install
# cd to tmux srcLDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local
make && make install
# you're good to go, for a sample ~/.tmux.conf check out
# https://github.com/sturadnidge/misc/blob/master/.tmux.conf