Installing tmux on CentOS 6.2

本文提供了一个在CentOS 6.2上安装tmux的完整指南,包括安装libevent依赖库、下载tmux源代码、配置并编译安装的过程。此外,还推荐了观看视频教程以加深理解。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

If you haven’t used tmux, you should probably give it a try.  It is an elegant and full featured terminal multiplexer similar to GNU Screen.

If life were easy you would simply fire up yum and install the program.

$sudo yum install tmux

But if we wanted life to be easy we would be running Ubuntu.

Installing tmux on CentOS 6.2, however, is a bit tricky, but not exceptionally hard.

tmux has a library dependency on libevent which, of course, isn’t installed by default.  So you might think that you can install it using yum, again, that would be too easy.  It turns out that the libevent package you can install with yum is slightly out of date for tmux, but that is okay, we will do things the old fashioned way and install it from a tarball.


wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar xzvf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure && make
sudo make install

Once libevent is installed there are several ways you can install tmux. I am going to pull the most recent source right from the git repo, but you can visit the tmux website and choose a different method if you like.


git clone git://git.code.sf.net/p/tmux/tmux-code tmux
cd tmux
sh autogen.sh
./configure && make
sudo make install

That should do it, you are all set to start using tmux.

A good introduction to using tmux can be found in the video: An introduction to tmux, by Jack Franklin

Tags: CentOS, tmux



http://elroyjetson.org/dev-notes/centos/installing-tmux-on-centos-6-2

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值