ubuntu 14 安装 tmux 1.6

tmux下载地址:

wget https://github.com/tmux/tmux/archive/1.6.zip

依赖于libevent

wget https://github.com/downloads/libevent/libevent/libevent-2.0.19-stable.tar.gz


1. 编译安装libevent

tar -zxvf libevent-2.0.19-stable.tar.gz 
cd libevent-2.0.19-stable/
./configure
make && make install

此时会生成libevent.pc在本地目录。拷贝到pkgconfig目录下。

cp ./libevent.pc /usr/share/pkgconfig/

无此操作,编译tmux会报错

2.编译安装tmux

unzip 1.6.zip
cd tmux-1.6
chmod +x autogen.sh
./autogen.sh
./configure
make && make install

autogen.sh实际包含的操作:
- aclocal:处理宏定义
- automake:将Makefile.am中定义的结构建立Makefile.in
- autoconf:将configure.ac中的宏展开,生成configure脚本
(autoreconf:更新configure脚本)

configure:将生成的Makefile.in文件转换为Makefile

3.错误信息

configure: error: “curses not found”

ubuntu: sudo apt-get install libncurses5-dev
fedora: yum install ncurses-devel

参考资料:
http://blog.sina.com.cn/s/blog_69cdee7f010184tx.html
http://blog.chinaunix.net/uid-10915175-id-3256850.html

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值