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





你可能感兴趣的:(Tmux)