tmux安装教程

tmux-多终端复用器           

方式一:使用tar包安装

  安装前首先需要安装两个依赖libevent和ncurces

  下载地址详见:https://tmux.github.io/

  安装libevent:

    # tar -zxvf libevent-2.1.8-stable.tar.gz -C /opt/cdh/

    #cd /opt/cdh/libevent-2.1.8-stable/

    # ./configure

    # make && make install

  安装ncurces:

    yum -y install ncurses-devel

  安装tmux-1.8:

    # tar -zxvf tmux-1.8.tar.gz -C /opt/cdh/

    # cd tmux-1.8/

    #./configure LDFLAGS="-Wl,-rpath,/usr/local/lib"

    # make && make install


方式二:使用yum安装

  # wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
  # wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
  # rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
  # yum install tmux

 使用此方式默认安装的是tmux.x86_64 0:1.6-3.el6版本

安装问题记录:

1.(部分截取)control.c:63: error: (Each undeclared identifier is reported only once

control.c:63: error: for each function it appears in.)

control.c:63: warning: assignment makes pointer from integer without a cast

make: *** [control.o] Error 1

如果出现上述错误是由于libevent版本太低造成的,tmux-1.8需要libevent>=2.0.10-stable


2.tmux: error while loading shared libraries: libevent-2.1.so.2: cannot open shared object file: No such file or directory

原因有二:

  一是操作系统里没有包含该共享库l(ib*.so.*文件)或者共享库版本不对

  二是已经安装了共享库,但程序在按照默认路径找不到该共享库文件

解决方式:

  # echo "/usr/local/lib" >> /etc/ld.so.conf

  # ldconfig


开启tmux:

  tmux





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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值