cygwin 编译 tmux

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)按照教程如上连接,或如下实作经验,安装必须文件。

 

  1. Install required Cygwin packages
    1. run Cygwin setup.exe
    2. install these packages that are not installed by default:
      automake, gcc, git,patch,libncurses-devel, ncurses and pkg-config
  2. Install libevent
    1. browse http://libevent.org
    2. download libevent-2.0.21-stable.tar.gz
    3. open a cygwin terminal
    4. cd to directory containing downloaded file
    5. tar zxf libevent-2.0.21-stable.tar.gz
    6. cd libevent-2.0.21-stable
    7. ./configure --prefix=/usr
    8. make && make install
  3. Install ncurses
    1. browse http://ftp.gnu.org/gnu/ncurses
    2. download ncurses-5.9.tar.gz
    3. open a cygwin terminal
    4. cd to directory containing downloaded file
    5. tar zxf ncurses-5.9.tar.gz
    6. cd ncurses-5.9
    7. ./configure --prefix=/usr
    8. 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或更新过了。

 

  1. Install tmux
    1. open a cygwin terminal
    2. git clone http://git.code.sf.net/p/tmux/tmux-code tmux-tmux-code
    3. cd tmux-tmux-code
    4. ./autogen.sh (will see many warnings)
    5. CFLAGS="-I/usr/include/ncurses" ./configure --prefix=/usr
    6. make && make install

如果前面都操作正常,此步骤可以正常完成。

 

上张成果图。

------------------------------------------------------------------------------------------------------

 

 

其他:

tmux 中出现window死掉现象,要杀死这个死掉窗口:

在其他窗口或退出tmux(ctrl+b d) 后,用 

tmux kill-window -t window-number

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值