您的位置:首页 > 其它

ubuntu 14 安装 tmux 1.6

2015-10-29 12:04 411 查看
tmux下载地址:

wget https://github.com/tmux/tmux/archive/1.6.zip[/code] 
依赖于libevent

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

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ubuntu14 tmux1-6