当前位置: 首页 > 工具软件 > tmate > 使用案例 >

如何在centos上搞定tmate

姬庆
2023-12-01

tmux比较简单,很easy可以搞定。可是tmate,官方只给了mac和ubutn的安装,centos,完全不管......



(1)官方教程( http://tmate.io/ )是这个,但是只给了ubutn的安装,没有给centos的安装
Grab the sources from github: https://github.com/nviennot/tmate .
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终于可以解决了

tmate的作者在答疑链接中 https://github.com/nviennot/tmate/issues/15

# 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


 类似资料: