ubuntu 14 安装 tmux 1.6

来源:互联网 发布:js encodeuri 编辑:程序博客网 时间:2024/06/13 13:38

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/./configuremake && make install

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

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

无此操作,编译tmux会报错

2.编译安装tmux

unzip 1.6.zipcd tmux-1.6chmod +x autogen.sh./autogen.sh./configuremake && 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