refs:
http://java.ociweb.com/mark/programming/tmuxInCygwin.html
http://sourceforge.net/mailarchive/message.php?msg_id=30850840
http://zengrong.net/post/1823.htm
cygwin从163镜像下载
os:win xp
1)编译 libevent 时,提示grep 不支持长文件,failed
暂停。
2)cygwin 安装中有问题,之前安装的版本和之后升级的版本不一致,之前只有setup文件
之后有区别setup_x86和setup_x86_642个版本,清理后重新安装,一切OK。
3)按照教程如上连接,或如下实作经验,安装必须文件。
- Install required Cygwin packages
- run Cygwin setup.exe
- install these packages that are not installed by default:
automake, gcc, git,patch,libncurses-devel, ncurses and pkg-config
- Install libevent
- browse http://libevent.org
- download libevent-2.0.21-stable.tar.gz
- open a cygwin terminal
- cd to directory containing downloaded file
- tar zxf libevent-2.0.21-stable.tar.gz
- cd libevent-2.0.21-stable
- ./configure --prefix=/usr
- make && make install
- Install ncurses
- browse http://ftp.gnu.org/gnu/ncurses
- download ncurses-5.9.tar.gz
- open a cygwin terminal
- cd to directory containing downloaded file
- tar zxf ncurses-5.9.tar.gz
- cd ncurses-5.9
- ./configure --prefix=/usr
- make && make install
4)可以直接使用tmux的bin文件,或继续下载tmux源码,安装。
tmux for cygwin的bin文件
https://docs.google.com/file/d/0B7oqPEemRewhUDlkbWJhbDlEY0E
5)注意3.1中红色的package,此处没有使用网上的关于tmux在cygwin下要打patch的步骤,
(试过打patch,有些补丁会fail),估计该份code已经打过patch或更新过了。
- Install tmux
- open a cygwin terminal
- git clone http://git.code.sf.net/p/tmux/tmux-code tmux-tmux-code
- cd tmux-tmux-code
- ./autogen.sh (will see many warnings)
- CFLAGS="-I/usr/include/ncurses" ./configure --prefix=/usr
- make && make install
如果前面都操作正常,此步骤可以正常完成。
上张成果图。
------------------------------------------------------------------------------------------------------
其他:
tmux 中出现window死掉现象,要杀死这个死掉窗口:
在其他窗口或退出tmux(ctrl+b d) 后,用
tmux kill-window -t window-number