如何在centos上搞定tmate

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


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值