debian上安装tmux

1、安装ncurses库

  1.1、获取源码  

wget https://invisible-island.net/datafiles/release/ncurses.tar.gz
tar xvf ncurses.tar.gz
cd ~/ncurses-6.1        

  1.2、进行配置

./configure

  1.3、编译

make -j4

  1.4、安装

sudo make install

 

2、安装libevent库

  2.1、获取源码  

git clone https://github.com/libevent/libevent.git
cd libevent 

  2.2、进行配置

./autogen.sh
./configure --disable-samples

  2.3、编译

make -j4

  2.4、安装

sudo make install

3、安装tmux库

  3.1、获取源码  

git clone https://github.com/tmux/tmux.git
cd tmux

  3.2、生成配置

    3.2.1、需要先安装pkg-config

sudo apt-get install pkg-config

      否则会报如下错误:

  

configure.ac:91: error: possibly undefined macro: AC_SEARCH_LIBS
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
autoreconf failed

   3.2.2、生成配置

./autogen.sh

  3.3、进行配置

./configure CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"

  3.4、编译

   3.4.1、如果缺乏yacc的话,编译的时候会报错

yacc: command not found
Makefile:833: recipe for target 'cmd-parse.c' failed tmux

      可用采用如下命令安装:

sudo apt-get install byacc

    3.4.2、执行编译

make -j4

  3.5、安装

sudo make install

  3.6、共享库设置

su #必须要用root用户才可执行下面命令
echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig

 

转载于:https://www.cnblogs.com/minglee/p/11314716.html

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值